fix(opencode): use toLowerCase for Devstral model detection (#33109)

Co-authored-by: Robin1987China <fanrenzhige@163.com>
This commit is contained in:
卫斯李 2026-06-21 03:19:27 +08:00 committed by GitHub
parent 009f3799cd
commit babe5070e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -218,7 +218,7 @@ function normalizeMessages(
if (
model.providerID === "mistral" ||
model.api.id.toLowerCase().includes("mistral") ||
model.api.id.toLocaleLowerCase().includes("devstral")
model.api.id.toLowerCase().includes("devstral")
) {
const scrub = (id: string) => {
return id