fix(provider): normalize Mistral family tool call IDs (#37982)

Co-authored-by: tobwen <1864057+tobwen@users.noreply.github.com>
This commit is contained in:
Aiden Cline
2026-07-20 13:58:49 -05:00
committed by GitHub
parent 5a8ee27254
commit 3033afba51
2 changed files with 51 additions and 2 deletions
+2 -2
View File
@@ -227,10 +227,10 @@ function normalizeMessages(
})
}
const modelID = model.api.id.toLowerCase()
if (
model.providerID === "mistral" ||
model.api.id.toLowerCase().includes("mistral") ||
model.api.id.toLowerCase().includes("devstral")
["mistral", "devstral", "codestral", "pixtral", "mixtral"].some((family) => modelID.includes(family))
) {
const scrub = (id: string) => {
return id