Repository navigation
fix: support native Mistral models beyond the bundled catalogue - #557
Open
DivyamTalwar wants to merge 1 commit into
Open
DivyamTalwar wants to merge 1 commit into
DivyamTalwar wants to merge 1 commit into
Conversation
Let the native Mistral API validate current model IDs and discover account-visible chat/FIM models. Preserve Mistral request controls, streamed tool-call assembly, credentials, cancellation, and offline fallback semantics. Signed-off-by: Divyam Talwar <divyamtalwar0@gmail.com>
DivyamTalwar
force-pushed
the
fix/mistral-current-model-identifiers
branch
from
November 22, 2026 19:59
acbdd11 to
3f58ef2
Compare
DivyamTalwar
marked this pull request as ready for review
November 22, 2026 20:00
Contributor
Author
|
@m1ab0t rebased onto current main; tsc, build and eslint pass, and all Mistral tests pass in the extension suite. Out of draft and ready for your review. |
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
Fixes #546.
Mistral model IDs that are missing from fluency.js's bundled catalogue fail before reaching the service. This change lets the native Mistral API validate those IDs and discovers the models available to the configured account. Known models retain their existing streaming policy; manually supplied IDs remain usable even when discovery returns no models.
Not verified: live Mistral account and model-entitlement verification remains outstanding.
Changes
https://api.mistral.ai/v1endpoint. Credentials come from the configured key orMISTRAL_API_KEY; unrelated OpenAI credentials are not borrowed. No shared model catalogue is modified.temperature / 2conversion for both streaming and blocking requests. Other providers retain their existing temperature values. Mistral does not receive OpenAI-specific streaming-usage or reasoning controls.GET /models, retaining advertised chat/FIM capabilities and context limits. Deduplicate IDs and preserve a successful empty response. Custom FIM endpoints retain their configured discovery address and credentials.Validation
git diff --checkalso passed after the temperature and tool-fragment corrections.0.8 → 0.4wire temperatures, system/tool payloads, SSE text and fragmented tool calls, discovery errors, deadline, cancellation, and catalogue isolation. Blocking request tests call the real SDK directly because all currently bundled Mistral models stream.sedusage on Mac, and missingmade.txt. The fourth failure was an unchanged diagnostics test exceeding its original two-second timeout. A runner-only ten-second probe passed all its assertions in 2735 ms. The original full-suite failure remains disclosed; no diagnostics source or default timeout was changed.Remaining validation
Live Mistral requests and account/model entitlements have not been tested. Local protocol fixtures verify request construction and response handling, but cannot establish that a particular account can use a particular model. Human review remains pending.