update tests
This commit is contained in:
parent
e119e310ef
commit
46bd790b3a
|
@ -48,7 +48,7 @@ jest.mock("@budibase/pro", () => ({
|
||||||
ai: {
|
ai: {
|
||||||
LargeLanguageModel: {
|
LargeLanguageModel: {
|
||||||
forCurrentTenant: async () => ({
|
forCurrentTenant: async () => ({
|
||||||
initialised: true,
|
llm: {},
|
||||||
run: jest.fn(() => `Mock LLM Response`),
|
run: jest.fn(() => `Mock LLM Response`),
|
||||||
buildPromptFromAIOperation: jest.fn(),
|
buildPromptFromAIOperation: jest.fn(),
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -108,7 +108,9 @@ export async function run({
|
||||||
|
|
||||||
let llmWrapper
|
let llmWrapper
|
||||||
if (budibaseAIEnabled || customConfigsEnabled) {
|
if (budibaseAIEnabled || customConfigsEnabled) {
|
||||||
llmWrapper = await pro.ai.LargeLanguageModel.forCurrentTenant(inputs.model)
|
llmWrapper = await pro.ai.LargeLanguageModel.forCurrentTenant(
|
||||||
|
inputs.model
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
response = llmWrapper?.llm
|
response = llmWrapper?.llm
|
||||||
|
|
Loading…
Reference in New Issue