Repository navigation
💶 fix: Price Mistral Large 3 at $0.50 / $1.50 per MTok - #16675
Merged
danny-avila merged 1 commit intoOct 5, 2026
Merged
Conversation
`mistral-large-2512` (and `mistral-large-latest`, which now points to it) had no dedicated entry and fell back to the generic `mistral-large` key, billing at Mistral Large 2 rates ($2 / $6), 4x the actual price. - Add `mistral-large-2512` and `mistral-large-3` at $0.50 / $1.50 - Point the generic `mistral-large` fallback to the current model's price - Pin `mistral-large-2411` to its $2 / $6 rate - Drop the stale Sonnet 5 "revert after 2026-08-31" comments: Anthropic made the $2 / $10 pricing standard, so the scheduled increase won't happen Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
|
👋 Thanks for the contribution! LibreChat merges all changes into Nothing is needed from you; your commits, reviews and discussion are unchanged. If the diff now shows files you did not touch, rebase onto git remote add upstream https://github.com/LibreChat-AI/LibreChat.git
git fetch upstream dev
git rebase upstream/dev
git push --force-with-leaseMaintainers: apply the |
Alan-Billi
marked this pull request as draft
October 2, 2026 15:49
danny-avila
marked this pull request as ready for review
October 5, 2026 01:44
danny-avila
approved these changes
Oct 5, 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
Closes #16676. Opened as a draft until the issue is assigned.
mistral-large-2512(Mistral Large 3) has no entry intokenValues, sofindMatchingPatternfalls back to the genericmistral-largekey and bills it at Mistral Large 2 rates ($2 / $6 per MTok). Mistral Large 3 is priced at $0.50 / $1.50, so its transactions — and any spend reporting built on them — are overstated 4x.mistral-large-latestnow resolves to Large 3 as well.Changes in
packages/data-schemas/src/methods/tx.ts:mistral-large-2512andmistral-large-3at $0.50 / $1.50.mistral-largefallback (used bymistral-large-latest) to the current model's price.mistral-large-2411(Large 2.1) to its $2 / $6 rate so it keeps its existing pricing.Pricing sources: Mistral Large 3 2512 on OpenRouter, Anthropic pricing.
Change Type
Testing
Added a
Mistral Large Pricingsuite totx.spec.tscoveringmistral-large-2512,mistral-large-3,mistral-large-latestand a provider-prefixed name ($0.50 / $1.50),mistral-large-2411($2 / $6), and the legacy 2402 / 2407 Bedrock rates.Test Configuration:
What was run, and what was not:
npx jest src/methods/tx.spec.tsinpackages/data-schemas, on Node v24, against a dependency install older than current upstream. Result: all 3 new tests pass. 9 pre-existing tests fail (getValueKey/getMultiplierGPT cases such as "should return "4k" for model name containing "gpt-3.5""). The same 9 fail on unmodified upstream with that install, so they come from the stale dependencies, not this change.npx prettier --checkon both files: clean.npm run test:api,npm run lint,npm run static-checks, and a clean reinstall.Checklist
tx.spec.tswas run; see Testing)🤖 Generated with Claude Code