From fe8f581e2640a2298fe5d9ad9015cce98e31a3bf Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Fri, 7 Feb 2025 19:55:16 -0800 Subject: [PATCH] Update llm.test.ts --- core/llm/llm.test.ts | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/core/llm/llm.test.ts b/core/llm/llm.test.ts index 53729022a..9912b862e 100644 --- a/core/llm/llm.test.ts +++ b/core/llm/llm.test.ts @@ -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 = { @@ -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 }, + ); });