From 1dc6b4a040fdeb94077ae83a5d5e728d9a0d947c Mon Sep 17 00:00:00 2001 From: Robin1987China Date: Sat, 20 Jun 2026 21:11:19 +0800 Subject: [PATCH] fix(opencode): use toLowerCase for Devstral model detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit toLocaleLowerCase is locale-sensitive and can break model-id matching in Turkish locale (I -> ı). Every other model-id check in this file already uses toLowerCase. Closes #33108 --- packages/opencode/src/provider/transform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/provider/transform.ts b/packages/opencode/src/provider/transform.ts index 92ff8fece835..f78cc53e7566 100644 --- a/packages/opencode/src/provider/transform.ts +++ b/packages/opencode/src/provider/transform.ts @@ -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