Skip to content

Commit a7d1cc1

Browse files
rekram1-nodeopencode
authored andcommitted
fix: ensure the mistral ordering fixes also apply to devstral (#11251)
1 parent 8ec6477 commit a7d1cc1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ export namespace ProviderTransform {
8282
return msg
8383
})
8484
}
85-
if (model.providerID === "mistral" || model.api.id.toLowerCase().includes("mistral")) {
85+
if (
86+
model.providerID === "mistral" ||
87+
model.api.id.toLowerCase().includes("mistral") ||
88+
model.api.id.toLocaleLowerCase().includes("devstral")
89+
) {
8690
const result: ModelMessage[] = []
8791
for (let i = 0; i < msgs.length; i++) {
8892
const msg = msgs[i]

0 commit comments

Comments
 (0)