Skip to content

feat: add Mistral Medium 3.5 with reasoning support#24996

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
rubdos:mistral-medium-3.5
Apr 29, 2026
Merged

feat: add Mistral Medium 3.5 with reasoning support#24996
rekram1-node merged 1 commit into
anomalyco:devfrom
rubdos:mistral-medium-3.5

Conversation

@rubdos
Copy link
Copy Markdown
Contributor

@rubdos rubdos commented Apr 29, 2026

Issue for this PR

(didn't make one, but follow-up from #19479 )

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Follow up on #23735 , but for the Mistral Medium 3.5 model released today.

How did you verify your code works?

Added a test case to check that mistral-medium-3.5 returns a reasoning variant.

Screenshots / recordings

n/a

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@rekram1-node rekram1-node merged commit 639e27c into anomalyco:dev Apr 29, 2026
11 checks passed
@rekram1-node
Copy link
Copy Markdown
Collaborator

Dont all reasoning mistral models support the variant or no? maybe some models are incorrectly marked as reasoning models? Ideally we arent quite as explicit but also ideally we track this in models.dev which we will do soon

@rubdos
Copy link
Copy Markdown
Contributor Author

rubdos commented Apr 30, 2026

Dont all reasoning mistral models support the variant or no?

Nope, only those two. The other reasoning models you have to textually instruct:

Native (https://docs.mistral.ai/capabilities/reasoning/native, Magistral) vs adjustable (https://docs.mistral.ai/studio-api/conversations/reasoning/adjustable, Mistral Small 4 and Mistral Medium 3.5).

@rubdos
Copy link
Copy Markdown
Contributor Author

rubdos commented Apr 30, 2026

Ideally we arent quite as explicit but also ideally we track this in models.dev which we will do soon

I thought so. I've sent a PR to Vercel AI as well: vercel/ai#14828

@rubdos
Copy link
Copy Markdown
Contributor Author

rubdos commented May 4, 2026

@rekram1-node I see the option for "high" in the TUI (toggleable with ^t), but not in the web-ui; does that require changes anywhere else?

@rekram1-node
Copy link
Copy Markdown
Collaborator

Huh ill check, how are u running web ui? opencode web?

@rubdos
Copy link
Copy Markdown
Contributor Author

rubdos commented May 4, 2026

Oh, opencode serve, that's different? 😆

@rubdos
Copy link
Copy Markdown
Contributor Author

rubdos commented May 4, 2026

Just checked: opencode web has the same. Mistral Small 4 and Medium 3.5 don't list any variants. Maybe it only shows when there is more than a single variant?

@rekram1-node
Copy link
Copy Markdown
Collaborator

No they shouldnt different just wondering how u were running helps guarantee the version ur on

@rekram1-node
Copy link
Copy Markdown
Collaborator

ill ask web ppl (i never use it)

@fmflurry
Copy link
Copy Markdown

fmflurry commented May 5, 2026

image

I still can't see the thinking variant in the TUI, you guys are able to tweak it ?

@rekram1-node
Copy link
Copy Markdown
Collaborator

ah it's because this PR actually doesnt work it looks like. Real ids would be:
mistral-medium-2604

@rekram1-node
Copy link
Copy Markdown
Collaborator

@fmflurry
Copy link
Copy Markdown

fmflurry commented May 5, 2026

ah it's because this PR actually doesnt work it looks like. Real ids would be: mistral-medium-2604

I'm using this model-id, it means I'm using 'high' ?

@fmflurry
Copy link
Copy Markdown

fmflurry commented May 5, 2026

this fixes: https://github.com/anomalyco/opencode/compare/fix-mistral-variants?expand=1

"There isn't anything to compare".

edit: 👉 I asked because from my understanding it is already merged / release and I still can't tweak the thinking variant.

@rekram1-node
Copy link
Copy Markdown
Collaborator

I just merged my pr an hour ago, so no it's not released yet

@rubdos
Copy link
Copy Markdown
Contributor Author

rubdos commented May 6, 2026

You mean the id matching for the variants should've been on the dated id, not the versioned one? Thought it would be consistent with showing "high" and nothing on ^t in the TUI... Thanks for finding out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants