From dbd3430984d07969cfaad8063736f3de705e0bcf Mon Sep 17 00:00:00 2001 From: Mathieu Santostefano Date: Wed, 21 May 2025 20:33:30 +0200 Subject: [PATCH 1/2] Add Devstral as model supporting tools Ref #5778 --- core/llm/toolSupport.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index 8a96a4d60..cd14586bb 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -88,6 +88,7 @@ export const PROVIDER_TOOL_SUPPORT: Record< return ( !model.toLowerCase().includes("mamba") && [ + "devstral", "codestral", "mistral-large", "mistral-small", @@ -136,6 +137,7 @@ export const PROVIDER_TOOL_SUPPORT: Record< "aya-expanse", "firefunction-v2", "mistral", + "devstral", ].some((part) => modelName.toLowerCase().includes(part)) ) { return true; From 6c5441effde54f4356fc919bf0f88e2e2777e278 Mon Sep 17 00:00:00 2001 From: Mathieu Santostefano Date: Wed, 21 May 2025 20:37:36 +0200 Subject: [PATCH 2/2] Update toolSupport.test.ts to support devstral --- core/llm/toolSupport.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/llm/toolSupport.test.ts b/core/llm/toolSupport.test.ts index c92bb93ee..416a4c9eb 100644 --- a/core/llm/toolSupport.test.ts +++ b/core/llm/toolSupport.test.ts @@ -155,6 +155,7 @@ describe("PROVIDER_TOOL_SUPPORT", () => { expect(supportsFn("pixtral-12b-2409")).toBe(true); expect(supportsFn("pixtral-large-latest")).toBe(true); expect(supportsFn("open-mistral-nemo")).toBe(true); + expect(supportsFn("devstral-latest")).toBe(true); }); it("should return false for other unsupported models", () => { @@ -170,6 +171,7 @@ describe("PROVIDER_TOOL_SUPPORT", () => { expect(supportsFn("CODESTRAL-LATEST")).toBe(true); expect(supportsFn("MINISTRAL-8B-LATEST")).toBe(true); expect(supportsFn("PIXTRAL-12B-2409")).toBe(true); + expect(supportsFn("DEVSTRAL-LATEST")).toBe(true); }); }); @@ -192,6 +194,7 @@ describe("PROVIDER_TOOL_SUPPORT", () => { expect(supportsFn("aya-expanse")).toBe(true); expect(supportsFn("firefunction-v2")).toBe(true); expect(supportsFn("mistral-7b")).toBe(true); + expect(supportsFn("devstral-24b")).toBe(true); }); it("should return false for explicitly unsupported models", () => {