lint
This commit is contained in:
parent
9cbaa02f5f
commit
69b2bf9bdb
|
@ -262,4 +262,3 @@ export async function getSCIMConfig(): Promise<SCIMInnerConfig | undefined> {
|
|||
export async function getAIConfig(): Promise<AIConfig | undefined> {
|
||||
return getConfig<AIConfig>(ConfigType.AI)
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ jest.mock("@budibase/pro", () => ({
|
|||
features: {
|
||||
isAICustomConfigsEnabled: jest.fn(),
|
||||
isBudibaseAIEnabled: jest.fn(),
|
||||
}
|
||||
},
|
||||
}))
|
||||
|
||||
const mockedOpenAI = OpenAI as jest.MockedClass<typeof OpenAI>
|
||||
|
@ -102,7 +102,7 @@ describe("test the openai action", () => {
|
|||
)
|
||||
|
||||
const res = await runStep("OPENAI", {
|
||||
prompt: OPENAI_PROMPT,jj
|
||||
prompt: OPENAI_PROMPT,
|
||||
})
|
||||
|
||||
expect(res.response).toEqual(
|
||||
|
@ -118,7 +118,7 @@ describe("test the openai action", () => {
|
|||
const prompt = "What is the meaning of life?"
|
||||
await runStep("OPENAI", {
|
||||
model: "gpt-4o-mini",
|
||||
prompt
|
||||
prompt,
|
||||
})
|
||||
|
||||
expect(pro.ai.LargeLanguageModel).toHaveBeenCalledWith("gpt-4o-mini")
|
||||
|
|
Loading…
Reference in New Issue