litellm - ✅(Solved) Fix Add "openrouter/minimax/minimax-m2.7" in "model_prices_and_context_window.json" [2 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#24601Fetched 2026-04-08 01:32:26
View on GitHub
Comments
0
Participants
1
Timeline
9
Reactions
0
Participants
Timeline (top)
referenced ×5cross-referenced ×4

Fix Action

Fixed

PR fix notes

PR #24614: fix: add openrouter/minimax/minimax-m2.7 model pricing

Description (problem / solution / changelog)

Summary

  • Adds the openrouter/minimax/minimax-m2.7 model to the model prices JSON file
  • Includes input/output token costs, context window, and feature support

Changes

  • model_prices_and_context_window.json: Added minimax-m2.7 entry
  • litellm/model_prices_and_context_window_backup.json: Same entry in backup

Test plan

  • JSON validation passed
  • Follows alphabetical ordering in the JSON
  • Matches format of adjacent minimax models (m2, m2.1, m2.5)

Fixes #24601

Changed files

  • litellm/model_prices_and_context_window_backup.json (modified, +17/-0)
  • model_prices_and_context_window.json (modified, +17/-0)

PR #24620: fix: add openrouter/minimax/minimax-m2.7 model pricing

Description (problem / solution / changelog)

Adds the minimax-m2.7 model from OpenRouter to the model prices JSON. Includes input/output token costs, context window, and feature support.

Fixes #24601

Relevant issues

<!-- e.g. "Fixes #000" -->

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/test_litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem
  • I have requested a Greptile review by commenting @greptileai and received a Confidence Score of at least 4/5 before requesting a maintainer review

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

<!-- Select the type of Pull Request --> <!-- Keep only the necessary ones -->

🆕 New Feature 🐛 Bug Fix 🧹 Refactoring 📖 Documentation 🚄 Infrastructure ✅ Test

Changes

Changed files

  • litellm/model_prices_and_context_window_backup.json (modified, +17/-0)
  • model_prices_and_context_window.json (modified, +17/-0)
RAW_BUFFERClick to expand / collapse

extent analysis

Fix Plan

Update JSON files to reflect the new model.

Steps

  • Update model_prices_and_context_window.json:
    • Modify the model field to reference the new model.
    • Example:

{ "model": "new_model_name", "prices": [...], "context_window": ... }

* Update `model_prices_and_context_window_backup.json` with the same changes.
* Use a script or a programming language like Python to automate the update process:
  ```python
import json

# Load the JSON files
with open('model_prices_and_context_window.json') as f:
    data = json.load(f)

# Update the model field
data['model'] = 'new_model_name'

# Save the updated JSON files
with open('model_prices_and_context_window.json', 'w') as f:
    json.dump(data, f)

with open('model_prices_and_context_window_backup.json', 'w') as f:
    json.dump(data, f)

Verification

Check the updated JSON files to ensure the model field has been updated correctly.

Extra Tips

  • Make sure to backup the original JSON files before making any changes.
  • Use version control to track changes to the JSON files.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - ✅(Solved) Fix Add "openrouter/minimax/minimax-m2.7" in "model_prices_and_context_window.json" [2 pull requests, 1 participants]