fix: ensure the mistral ordering fixes also apply to devstral (#11412)

This commit is contained in:
Aiden Cline 2026-01-30 23:16:07 -06:00 committed by GitHub
commit 95bf01a757
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,7 +83,11 @@ export namespace ProviderTransform {
return msg return msg
}) })
} }
if (model.providerID === "mistral" || model.api.id.toLowerCase().includes("mistral")) { if (
model.providerID === "mistral" ||
model.api.id.toLowerCase().includes("mistral") ||
model.api.id.toLocaleLowerCase().includes("devstral")
) {
const result: ModelMessage[] = [] const result: ModelMessage[] = []
for (let i = 0; i < msgs.length; i++) { for (let i = 0; i < msgs.length; i++) {
const msg = msgs[i] const msg = msgs[i]