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