Update llm.test.ts

This commit is contained in:
Patrick Erichsen 2025-02-07 19:55:16 -08:00
parent a094c7e200
commit fe8f581e26

View file

@ -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 },
);
});