mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7164] Support Mistral Large 4 on Mistral connections #4001
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4001
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_efforton this model only accepts"high"or"none".message.content(and streamingdelta.content) is a list of chunks (type: "thinking"thentype: "text") instead of a string.seed→random_seed,max_completion_tokens,stream_options,logit_bias,user,top_k,min_p) and uses differentservice_tiervalues.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