litellm - 💡(How to fix) Fix Add "gemma4" in "model_prices_and_context_window.json" [1 comments, 2 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#26973Fetched 2026-05-02 05:28:16
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Timeline (top)
commented ×1
RAW_BUFFERClick to expand / collapse

Gemma4 is a very capable and efficient model from the Google open source model family. It is already quite popular.

Source: https://openrouter.ai/google/gemma-4-31b-it https://openrouter.ai/google/gemma-4-26b-a4b-it

We need to update both model_prices_and_context_window.json and model_prices_and_context_window_backup.json to reflect the new model.

extent analysis

TL;DR

Update the model_prices_and_context_window.json and model_prices_and_context_window_backup.json files to include the new Gemma4 model information.

Guidance

  • Review the existing format and structure of the model_prices_and_context_window.json and model_prices_and_context_window_backup.json files to understand the required updates.
  • Add the new Gemma4 model details, including its name, price, and context window, to both files in the same format as the existing models.
  • Verify that the updated files are correctly formatted and contain all the necessary information for the new model.
  • Consider creating a backup or version control checkpoint before making changes to the files.

Notes

The exact updates required will depend on the specific details of the Gemma4 model and the existing file formats.

Recommendation

Apply workaround: Update the JSON files manually with the new model information, as there is no indication of an automated process or fixed version available.

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