Repository navigation
fix: add missing fireworks models in cost map - #30564
mubashir1osmani wants to merge 2 commits into
Conversation
Greptile SummaryThis PR adds cost-map entries for four previously-missing Fireworks AI models (
Confidence Score: 5/5Safe to merge — pure JSON data additions with no code logic changes and both files kept in sync. All new entries are data-only additions to the cost map. The deepseek-v4-pro output-token cap concern raised in previous review rounds has been addressed by setting max_output_tokens/max_tokens to 384 000 rather than the full context window, matching the existing azure_ai/deepseek-v4-pro entry. The qwen3p6-plus context-window fields that were missing in an earlier draft are now present. The kimi-k2p6 pattern of max_output_tokens == max_input_tokens == 262 144 is consistent with every other kimi-k2p5/k2.6 entry already in the file. Both JSON files are kept perfectly in sync. No files require special attention.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds 5 new model pricing entries (2× deepseek-v4-pro, 2× kimi-k2p6, 2× qwen3p6-plus in long/short form, and 1× mistral/voxtral-small-2507); deepseek-v4-pro correctly caps max_output_tokens/max_tokens at 384 000, matching the azure_ai counterpart; all other fields are consistent with existing neighboring entries |
| litellm/model_prices_and_context_window_backup.json | Mirror of the primary price map; all 9 new entries are identical to model_prices_and_context_window.json — no drift detected |
Reviews (3): Last reviewed commit: "fix: cap fireworks deepseek-v4-pro max o..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ral voxtral-small-2507 to cost map
0b8ccc8 to
ec3f2a9
Compare
|
@greptile-apps Thanks for the review. Both points addressed.
|
|
Both responses are well-sourced — marking these resolved. P1 (qwen3p6-plus context): The values you chose ( P2 (Voxtral 32K): Deferring to the Mistral HuggingFace model card — that's the canonical source, not a third-party aggregator. The 32K/30-min-audio framing makes sense for an audio model where context window semantics differ from a pure text model. The existing 128K Bedrock entry is out of scope here; a follow-up correction there would be welcome if you have time. |
The Fireworks model page publishes only a ~1M context length and no separate generation cap, so the entry set max_output_tokens and max_tokens to the full 1048576 window. That equals max_input_tokens, which makes get_modified_max_tokens treat it as a shared input+output budget and lets callers request output sizes the model cannot actually produce. Cap output at 384000 to match the azure_ai/deepseek-v4-pro entry for the same underlying model (identical input/output costs), keeping the Fireworks 1048576 input context. Mirrored in the backup map.
|
Addressed the remaining point on |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f5a9f44. Configure here.
|
@mubashir1osmani the Qwen 3.6 Plus model on Fireworks AI has a 262K context window limit, this can be verified by making an API request with max_tokens set to 1M or by running a script that tries to push more than 262K tokens.
Other than this, the Qwen 3.6 Plus model will be deprecated today and has been replaced by Qwen 3.7 Plus, which has a similar limitation of 262K context window. |
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |

Relevant issues
LIT-3783
added pricing for missing models in cost map for accurate spend tracking
source:
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
make test-unit@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewDelays 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)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Screenshots / Proof of Fix
Type
🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test
Changes
Note
Low Risk
Data-only additions to the model cost map JSON files; no runtime logic changes, though incorrect pricing values would affect spend reporting.
Overview
Adds model pricing and capability metadata to
model_prices_and_context_window.jsonand its backup so LiteLLM can track spend and expose model info for models that were missing from the cost map (LIT-3783).Fireworks AI: New entries for DeepSeek V4 Pro, Kimi K2.6, and Qwen 3.6 Plus, each under both the full
accounts/fireworks/models/...path and shorterfireworks_ai/...aliases. Entries include per-token input/output (and cache-read where applicable), context limits, and flags such as reasoning, tools, and vision where relevant.Mistral: Adds
mistral/voxtral-small-2507with text pricing, 32K context, andsupports_audio_inputalongside standard chat/tool capabilities.Reviewed by Cursor Bugbot for commit f5a9f44. Bugbot is set up for automated code reviews on this repo. Configure here.