Repository navigation
feat(pricing): add MiniMax M2.7 cost map entry - #33084
Adityai1411 wants to merge 1 commit into
Conversation
Greptile SummaryThis PR adds a
Confidence Score: 5/5Purely additive JSON and test changes with no modifications to existing entries or production code paths. The change is a small, well-sourced addition to the model cost map with both JSON files kept in sync and a focused regression test. All field values are consistent with existing MiniMax models in the map and with the official docs cited in the PR description. No production logic is altered. No files require special attention.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds minimax/MiniMax-M2.7 cost-map entry with correct pricing ($0.3/M input, $1.2/M output, $0.06/M cache-read), 204800-token context window, and 196608 max output tokens; consistent with newer MiniMax models (M3 also lacks cache_creation_input_token_cost and uses the same cache-read price). |
| litellm/model_prices_and_context_window_backup.json | Identical minimax/MiniMax-M2.7 entry added, kept in sync with the root JSON file. |
| tests/test_litellm/litellm_core_utils/test_get_model_cost_map.py | New regression test verifies the M2.7 entry exists with correct values in both shipped maps; reads local filesystem files only (no network calls), so compliant with the mock-only test rule. |
Reviews (1): Last reviewed commit: "feat(pricing): add MiniMax M2.7 cost map..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Thanks for checking. I looked into the failing checks: the |
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |
Relevant issues
Closes #33058
Linear ticket
Pre-Submission checklist
Screenshots / Proof of Fix
This adds a static model-cost-map entry. The values are sourced from MiniMax official docs:
MiniMax-M2.7with a204,800context window.https://platform.minimax.io/docs/guides/text-generation
MiniMax-M2.7at$0.3 / Minput,$1.2 / Moutput, and$0.06 / Mprompt-cache read.https://platform.minimax.io/docs/guides/pricing-paygo
https://platform.minimax.io/docs/api-reference/text-chat-anthropic
Local verification:
Type
? Test
Changes
minimax/MiniMax-M2.7tomodel_prices_and_context_window.json.litellm/model_prices_and_context_window_backup.json.supports_vision.