diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index e1e1078c5..326934314 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -439,7 +439,7 @@ jobs: GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} - AZURE_FOUNDRY_API_KEY: ${{ secrets.AZURE_FOUNDRY_API_KEY }} + AZURE_FOUNDRY_CODESTRAL_API_KEY: ${{ secrets.AZURE_FOUNDRY_CODESTRAL_API_KEY }} AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY: ${{ secrets.AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY }} AZURE_OPENAI_GPT41_API_KEY: ${{ secrets.AZURE_OPENAI_GPT41_API_KEY }} diff --git a/core/llm/llm.test.ts b/core/llm/llm.test.ts index ae21e68ee..c3acdb211 100644 --- a/core/llm/llm.test.ts +++ b/core/llm/llm.test.ts @@ -161,12 +161,7 @@ function testLLM( group: "Hello", }, ], - toolChoice: { - type: "function", - function: { - name: "say_hello", - }, - }, + toolChoice: { type: "function", function: { name: "say_hello" } }, }, )) { const typedChunk = chunk as AssistantChatMessage; @@ -211,10 +206,7 @@ describe("LLM", () => { model: "claude-3-5-sonnet-latest", apiKey: process.env.ANTHROPIC_API_KEY, }), - { - skip: false, - testToolCall: true, - }, + { skip: false, testToolCall: true }, ); testLLM(new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "gpt-4o" }), { skip: false, @@ -240,12 +232,7 @@ describe("LLM", () => { apiKey: process.env.MISTRAL_API_KEY, model: "codestral-latest", }), - { - testFim: true, - skip: false, - testToolCall: true, - timeout: 60000, - }, + { testFim: true, skip: false, testToolCall: true, timeout: 60000 }, ); testLLM( new Azure({ @@ -260,11 +247,10 @@ describe("LLM", () => { ); 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", + apiKey: process.env.AZURE_FOUNDRY_CODESTRAL_API_KEY, + model: "Codestral-2501", + apiBase: "https://continue-foundry-resource.services.ai.azure.com", + env: { apiType: "azure-foundry", apiVersion: "2024-05-01-preview" }, }), { testFim: false, skip: false, timeout: 20000 }, );