mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7169] [MERGED] Support Mistral Large 4 on Mistral connections #7608
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#7608
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7169
Author: @SpicyMarinara
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/mistral-large-4📝 Commits (6)
29fd837feat(mistral): support Mistral Large 4 reasoning and replies (#7164)77f7f18fix(mistral): send a system message after an assistant turn as user (#7164)8224a00fix(connections): read Mistral context sizes and give its test reply room (#7164)4852584docs(changelog): note Mistral Large 4 support (#7164)817d66ffix(mistral): drop the repeated prefix, reshape tool-call ids and cover GLM 5.3 (#7164)0a459b3docs(changelog): note prefix, tool-call and GLM 5.3 fixes for Mistral (#7164)📊 Changes
11 files changed (+658 additions, -32 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/routes/connections.routes.ts(+11 -7)📝
packages/server/src/services/generation/generation-parameters.ts(+5 -2)📝
packages/server/src/services/llm/providers/openai.provider.ts(+120 -19)📝
packages/shared/src/constants/generation-parameter-relevance.ts(+9 -2)📝
packages/shared/src/constants/model-lists.ts(+25 -0)📝
scripts/regressions/connection-model-list.regression.ts(+9 -1)📝
scripts/regressions/connection-test-parameters.regression.ts(+18 -0)📝
scripts/regressions/generation-parameter-relevance.regression.ts(+31 -1)➕
scripts/regressions/mistral-reasoning-output.regression.ts(+413 -0)📝
scripts/regressions/provider-compat.regression.ts(+15 -0)📄 Description
Linked issue
Closes #7164
Why this change
Mistral released Mistral Large 4 (
mistral-large-4-0, 1M context, image input, optional reasoning) today. Marinara already has a Mistral provider, but this model's reasoning only accepts"high"/"none", returns replies as a list ofthinking/textchunks when reasoning is on (also while streaming), and Mistral's API rejects several OpenAI-only request fields.What changed
Opened early so CI and CodeRabbit can start; review fixes are still being finished and will be pushed to this PR.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Manually verify with a real Mistral API key: create a Mistral connection, pick
mistral-large-4-0, run Test, then chat with reasoning off and on (streamed), and send an image. Regressions use a fake Mistral server; no real Mistral request was made.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.