Skip to content

Commit 576480b

Browse files
authored
fix: ensure mistral medium 3.5 has variants properly setup (anomalyco#25887)
1 parent fdb4b7c commit 576480b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,12 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
761761
// https://docs.mistral.ai/capabilities/reasoning/adjustable
762762
if (!model.capabilities.reasoning) return {}
763763
// Only Mistral Small 4 and Medium 3.5 support reasoning
764-
const MISTRAL_REASONING_IDS = ["mistral-small-2603", "mistral-small-latest", "mistral-medium-3.5"]
764+
const MISTRAL_REASONING_IDS = [
765+
"mistral-small-2603",
766+
"mistral-small-latest",
767+
"mistral-medium-3.5",
768+
"mistral-medium-2604",
769+
]
765770
const mistralId = model.api.id.toLowerCase()
766771
if (!MISTRAL_REASONING_IDS.some((id) => mistralId.includes(id))) return {}
767772
return {

0 commit comments

Comments
 (0)