[GH-ISSUE #7164] Support Mistral Large 4 on Mistral connections #4001

Closed
opened 2026-10-21 06:09:26 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7164

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Mistral released Mistral Large 4 (mistral-large-4-0) on 2026-10-06: a 1M-token, image-capable model with optional reasoning. Marinara already has a Mistral provider, but the model needs a few things the current OpenAI-compatible request path may not handle:

  • reasoning_effort on this model only accepts "high" or "none".
  • With reasoning on, message.content (and streaming delta.content) is a list of chunks (type: "thinking" then type: "text") instead of a string.
  • Mistral's API rejects several OpenAI-only fields (seed → random_seed, max_completion_tokens, stream_options, logit_bias, user, top_k, min_p) and uses different service_tier values.

Proposed solution

Make Mistral connections work end to end with Mistral Large 4: correct request fields and reasoning mapping for Mistral, parse thinking/text chunks (streamed and not) into Marinara's thinking and reply, and keep the 1M context and image input working, without changing other providers.

Alternatives considered

None; no new provider is added.

Additional context

Requested by @SpicyMarinara. Claude Code is implementing this. References: https://docs.mistral.ai/models/mistral-large-4-0, https://docs.mistral.ai/capabilities/reasoning/, https://docs.mistral.ai/api

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7164 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Mistral released Mistral Large 4 (`mistral-large-4-0`) on 2026-10-06: a 1M-token, image-capable model with optional reasoning. Marinara already has a Mistral provider, but the model needs a few things the current OpenAI-compatible request path may not handle: - `reasoning_effort` on this model only accepts `"high"` or `"none"`. - With reasoning on, `message.content` (and streaming `delta.content`) is a **list of chunks** (`type: "thinking"` then `type: "text"`) instead of a string. - Mistral's API rejects several OpenAI-only fields (`seed` → `random_seed`, `max_completion_tokens`, `stream_options`, `logit_bias`, `user`, `top_k`, `min_p`) and uses different `service_tier` values. ## Proposed solution Make Mistral connections work end to end with Mistral Large 4: correct request fields and reasoning mapping for Mistral, parse thinking/text chunks (streamed and not) into Marinara's thinking and reply, and keep the 1M context and image input working, without changing other providers. ## Alternatives considered None; no new provider is added. ## Additional context Requested by @SpicyMarinara. Claude Code is implementing this. References: https://docs.mistral.ai/models/mistral-large-4-0, https://docs.mistral.ai/capabilities/reasoning/, https://docs.mistral.ai/api ## Template check - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4001
No description provided.