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

chore-update-deps
Aiden Cline 2026-01-29 22:40:08 -06:00 committed by opencode
parent 8ec6477c47
commit a7d1cc1432
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ export namespace ProviderTransform {
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[] = []
for (let i = 0; i < msgs.length; i++) {
const msg = msgs[i]