fix(model_prices): MiniMax-M3 max_input_tokens 512000 -> 1048576 - #29893
fix(model_prices): MiniMax-M3 max_input_tokens 512000 -> 1048576#29893ferr079 wants to merge 6 commits into
Conversation
[Infra] Promote internal staging to main
[Infra] Promote internal staging to main
chore(ci): promote internal staging to main
chore(ci): promote internal staging to main
Greptile SummaryCorrects the
Confidence Score: 5/5This is a data-only, two-line correction with no code changes; it unblocks requests between 512k and 1M tokens for MiniMax-M3 and cannot regress any other model or code path. Both JSON files are updated identically, the new value (1,048,576) is a power-of-two 1M constant consistent with MiniMax's published documentation and sibling model entries, and no capability flags, costs, or code are touched. No files require special attention.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Corrects max_input_tokens for minimax/MiniMax-M3 from 512000 to 1048576 (1M); both files updated identically and the entry is otherwise unchanged. |
| litellm/model_prices_and_context_window_backup.json | Mirror backup file updated with the same max_input_tokens correction as the primary JSON; change is consistent and complete. |
Reviews (1): Last reviewed commit: "fix(model_prices): MiniMax-M3 max_input_..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ns 1048576 The MiniMax-M3 entry merged to main (via #29412) carries max_input_tokens: 512000, which is MiniMax's long-context billing threshold, not the model's input limit. M3 supports a 1M token context window, consistent with the sibling MiniMax-M2.x entries. This branch is based on litellm_oss_branch (per the contribution flow), where the entry does not exist yet — so the corrected entry is added; on sync with internal staging the conflicting 512000 value should be resolved to 1048576.
ebc7bf7 to
e842af6
Compare
|
Retargeted Since Rationale unchanged (see PR description): 512k is MiniMax's long-context billing tier boundary, not the context window — M3 is a 1M model like the sibling M2.x entries. |
|
@ferr079 Can you resolve the conflicts? Thanks! |
…to fix/minimax-m3-context-window-main # Conflicts: # litellm/model_prices_and_context_window_backup.json # model_prices_and_context_window.json
|
|
|
@Sameerlite Done — merged |
Relevant issues
Follow-up to #29412 (review comment flagging this value before merge) and #29777 (earlier fix PR auto-closed when its staging base branch was deleted). The
minimax/MiniMax-M3entry has now landed onmainwith the incorrect value, so this re-targetsmain.Pre-Submission checklist
tests/test_litellm/directory — N/A: data-only change (2 lines) to the model cost map, no code path touchedmake test-unit— not run locally; only verification done is that both JSON files still parse (json.loads) after the editType
🐛 Bug Fix
Changes
max_input_tokensforminimax/MiniMax-M3: 512000 → 1048576, in bothmodel_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json.Why 512000 is wrong: MiniMax-M3 supports a 1M-token context window. The 512k figure is MiniMax's long-context billing threshold (their pricing has two input tiers: ≤512k and >512k), not the model's input limit. With 512000 in the map, LiteLLM rejects/truncates valid requests between 512k and 1M tokens.
Sources:
minimax/minimax-m3— context listed as 1,048,576minimax/MiniMax-M2.xentries in this map are all 1M-classCosts ($0.60/$2.40 per 1M) and capability flags are untouched.