Update llm.test.ts
This commit is contained in:
parent
a094c7e200
commit
fe8f581e26
1 changed files with 24 additions and 1 deletions
|
|
@ -2,12 +2,14 @@ import * as dotenv from "dotenv";
|
|||
|
||||
import { AssistantChatMessage, CompletionOptions } from "..";
|
||||
|
||||
import { BaseLLM } from ".";
|
||||
import Anthropic from "./llms/Anthropic";
|
||||
import Azure from "./llms/Azure";
|
||||
import Gemini from "./llms/Gemini";
|
||||
import Mistral from "./llms/Mistral";
|
||||
import OpenAI from "./llms/OpenAI";
|
||||
|
||||
import { BaseLLM } from ".";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const COMPLETION_OPTIONS: Partial<CompletionOptions> = {
|
||||
|
|
@ -222,4 +224,25 @@ describe("LLM", () => {
|
|||
}),
|
||||
{ testFim: true, skip: false },
|
||||
);
|
||||
testLLM(
|
||||
new Azure({
|
||||
apiKey: process.env.AZURE_OPENAI_API_KEY,
|
||||
model: "gpt-4o",
|
||||
apiVersion: "2024-05-01-preview",
|
||||
apiBase: "https://continue-azure-openai-instance.openai.azure.com",
|
||||
deployment: "azure-openai-deployment",
|
||||
apiType: "azure-openai",
|
||||
}),
|
||||
{ testFim: false, skip: false, timeout: 20000 },
|
||||
);
|
||||
testLLM(
|
||||
new Azure({
|
||||
apiKey: process.env.AZURE_FOUNDRY_API_KEY,
|
||||
model: "codestral-latest",
|
||||
apiBase:
|
||||
"https://codestral-2501-continue-testing.eastus.models.ai.azure.com",
|
||||
apiType: "azure-foundry",
|
||||
}),
|
||||
{ testFim: false, skip: false, timeout: 20000 },
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue