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", () => { 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;