Repository navigation
fix(runtime): suppress Mistral store field - #2562
Merged
Merged
Conversation
Mistral's Chat Completions endpoint (`https://api.mistral.ai/v1/chat/completions`) strictly rejects the OpenAI-only `store` field with HTTP 422 (`extra_forbidden`). Because pi-ai's `openai-completions` auto-detection does not classify Mistral as a non-standard endpoint, `supportsStore` defaulted to `true` and emitted `store: false`. Add `isMistralEndpoint` and `mistralRequestCompat` in `@pi-desktop/shared` and wire `supportsStore: false` in `buildProviderModel` for `openai-completions` bindings so Mistral requests omit `store` while preserving DeepSeek replay compatibility and OpenAI defaults. fixes #2539
Record Mistral Chat Completions store suppression and its endpoint scope. Document serialized request-body regression coverage for Mistral, hosted DeepSeek, custom Mistral endpoints, and unchanged OpenAI behavior.
Deploying pi-desktop with
|
| Latest commit: |
0bf7c8c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://59e64aac.pi-desktop.pages.dev |
| Branch Preview URL: | https://fix-p1-mistral-store.pi-desktop.pages.dev |
This was referenced Nov 24, 2026
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.
Summary
Continues contributor PR #2540 without modifying the contributor fork. Suppresses the OpenAI-only
storefield for Mistral Chat Completions, including Mistral-hosted DeepSeek and custom Mistral endpoints, while preserving DeepSeek reasoning replay and OpenAI defaults. Preserves the original implementation commit and adds provider/E2E behavior documentation.Validation
git diff --check: passedpnpm test:e2e: 21 checks passed, 2 live-provider checks skipped, then the unrelated session-revision scenario failed. The same failure was reproduced on clean main (including a Host binary built from this candidate); no paid/real provider was contacted.Fixes #2539 after merge. Original commit from #2540 is preserved.