Merge pull request #5779 from welcoMattic/patch-2

Add Devstral as model supporting tools
This commit is contained in:
Ty Dunn 2025-05-21 13:04:34 -07:00 • committed by GitHub
commit 432f36c080
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

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

View file

@ -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;