Repository navigation
fix: preserve system prompts for Mistral Chat Completions - #210
Merged
Merged
Conversation
hetaoBackend
previously approved these changes
Sep 20, 2026
hetaoBackend
previously approved these changes
Sep 20, 2026
SaladDay
force-pushed
the
fix/mistral-system-role
branch
from
September 20, 2026 05:08
cec1030 to
abc17a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Default to the
systeminstruction role for thinking-enabled custom OpenAI Chat Completions connections to the exactapi.mistral.aihost. Preserve reasoning, explicit compatibility overrides, all other request fields, other hosts, and the native Mistral transport.Scope excludes authentication, thinking switches, token-limit fields, provider redesign, and a global default change. Kimi (#206), DashScope (#207), and SiliconFlow (#209) are inherited unchanged. The preceding provider PRs are merged; this PR now targets
main.Stack
main -> #210#206, #207, and #209 are already merged. This final layer is rebased onto main as one commit, preserving the previous PR's file contents. There are no remaining downstream branches.
Evidence
Validation
npx --yes pnpm@9.12.0 verify: all 14 full-profile gates passed on macOS arm64 / Node 26.7.0 atabc17a4.git diff --checkpassed.Publication and maintainer handoff
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.