From 546b52a2df928687d56924f593108f5bb9235712 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Tue, 17 Jun 2025 12:47:49 -0700 Subject: [PATCH 1/2] fix: failing azure llm test --- core/llm/llm.test.ts | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) 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 }, ); From 5eacf45659352b0053ed3a983ab7ee689c028613 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Tue, 17 Jun 2025 13:01:38 -0700 Subject: [PATCH 2/2] Update pr_checks.yaml --- .github/workflows/pr_checks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}