fix(model_prices): correct max_input_tokens for minimax/MiniMax-M3 (512K → 1M) - #29777
fix(model_prices): correct max_input_tokens for minimax/MiniMax-M3 (512K → 1M)#29777ferr079 wants to merge 1 commit into
Conversation
…12K -> 1M) MiniMax-M3 ships a 1,048,576-token (1M) context window per MiniMax's official specs. The 512K figure is MiniMax's long-context billing threshold (requests <= 512K input are billed at the base rate), not the model's context window. This also makes the entry consistent with the sibling MiniMax-M2.x entries, which all use 1000000. Follow-up to #29412. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR corrects
Confidence Score: 5/5Safe to merge — the change is a targeted single-field data correction in two JSON config files with no code logic touched. Both files are updated consistently, pricing fields are untouched, and the new value matches the provider's documented 1M context window. The only open question is whether No files require special attention.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Single-field correction: max_input_tokens for minimax/MiniMax-M3 changed from 512000 to 1048576 (1M, matching OpenRouter's spec). |
| litellm/model_prices_and_context_window_backup.json | Backup JSON kept in sync with the main file; identical single-field correction applied. |
Reviews (1): Last reviewed commit: "fix(model_prices): correct max_input_tok..." | Re-trigger Greptile
| "supports_system_messages": true, | ||
| "supports_vision": true, | ||
| "max_input_tokens": 512000, | ||
| "max_input_tokens": 1048576, |
There was a problem hiding this comment.
Slight value inconsistency with sibling MiniMax-M2.x entries
All four sibling minimax/MiniMax-M2.x entries (M2, M2.1, M2.1-lightning, M2.5, M2.5-lightning) use 1000000 as their max_input_tokens, while M3 is now set to 1048576. Both represent "1 million tokens", but 1048576 is 2^20 (the binary interpretation used by OpenRouter) while 1000000 is the decimal round figure. If MiniMax's official API documentation states 1048576, the value here is correct — but it's worth confirming whether MiniMax's own spec uses the binary or decimal value, for consistency with the rest of the MiniMax family in this file.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
CLA signed ✅ Note on the failing |
Title
Corrects
max_input_tokensforminimax/MiniMax-M3from512000to1048576.Relevant issues
Follow-up to #29412 (merged with the 512K value) — see my review comment there: #29412 (comment)
Type
🐛 Bug Fix
Changes
Per MiniMax's official specs, MiniMax-M3 ships a 1,048,576-token (1M) context window (MSA architecture). The 512K figure is MiniMax's long-context billing threshold — requests at or below 512K input tokens are billed at the base rate — not the model's context window.
With
512000, LiteLLM's context-window checks (and routing/fallback logic based onmax_input_tokens) would reject or misroute valid requests between 512K and 1M tokens.model_prices_and_context_window.json:512000→1048576litellm/model_prices_and_context_window_backup.json: sameSources:
minimax/MiniMax-M2.xentries in this file, which all use1000000Pricing fields are untouched ($0.60/M input, $2.40/M output are correct).
🤖 Generated with Claude Code