Repository navigation
Conversation
huzky-v
force-pushed
the
feat/provider-mistral-ai
branch
from
November 23, 2026 09:12
5737574 to
88e546b
Compare
|
I would also like to use Mistral quota tracking in opencode-quota. Support for the Mistral Vibe and API budgets would be useful to me. Thanks for working on this! |
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.
What users see change
Adds Mistral AI as provider to get the quota, and it will detect what is the key type of the subscription (Vibe / API)
Logic Flow:
GET https://console.mistral.ai/api/vibe/whoamiFor plan_type: "chat" => show vibe_budget (This is Vibe Key)
For plan_type: "api" => show api_budget (This is API Key)
GET https://api.mistral.ai/v1/billing/budgetpassing the API key in bearer tokenthe usage_percentage and reset date is in the dataset, and get the corresponding object for the key type
Linked issue
N/A
Before and after screenshots
Checklist
pnpm verifyIt is requested by me only, not sure if anyone need Mistral to be supported.