Repository navigation
fix(model_prices): rolling registry audit 2026-11-16, add dashscope qwen4-max, max reasoning effort for ChatGPT GPT-5.6 - #52097
Conversation
…, max reasoning effort for GPT-5.6 and Azure Astra Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…48098 Co-authored-by: Tin <tin@berri.ai> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
|
Merging this PR will not alter performance1 warning
Comparing Footnotes |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…stra rows Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Handwritten 1-3 sentence description
[insert handwritten description here]
Details
Link to Devin session: https://app.devin.ai/sessions/9ce18badcd5941f697f419d809c59042
Open in Devin Desktop: https://app.devin.ai/desktop/session/9ce18badcd5941f697f419d809c59042?variant=devin
TLDR
Problem this solves:
maxeffortHow it solves it:
dashscope/qwen4-maxfrom Alibaba's model pagesupports_max_reasoning_effortchangeChanges by provider
Alibaba Cloud Model Studio (dashscope)
New row
dashscope/qwen4-max, sourced from https://www.alibabacloud.com/help/en/model-studio/qwen4-max and cross-checked against https://www.alibabacloud.com/help/en/model-studio/model-pricing. The International (Singapore) row lists $1.5 input and $4.5 output per 1M tokens for 0<Token<=1M, soinput_cost_per_tokenis 1.5e-06 andoutput_cost_per_tokenis 4.5e-06. The context limits table gives 991,808 max input (non-thinking) and 131,072 max output (non-thinking). The capability table lists text, image and video input, deep thinking, function calling, parallel tool calling, web search, structured output and explicit plus implicit cache, which map to the flags on the row. No cache read or write prices were added because https://www.alibabacloud.com/help/en/model-studio/explicit-cache-qwen4#billing only states approximate percentages for writes and leaves the Qwen4-Max cache read cell empty, in both raw HTML and r.jina.ai.supports_tool_choicewas not added since the page does not mention it.ChatGPT (partly absorbed from #48098)
supports_max_reasoning_effortset to true onchatgpt/gpt-5.6-sol,chatgpt/gpt-5.6-lunaandchatgpt/gpt-5.6-terra, which are responses mode rows likechatgpt/gpt-6-astrathat already carries true on main. OpenAI's model pages https://developers.openai.com/api/docs/models/gpt-5.6-sol, https://developers.openai.com/api/docs/models/gpt-5.6-luna and https://developers.openai.com/api/docs/models/gpt-5.6-terra say reasoning.effort supports none, low, medium, high, xhigh and max.The rest of #48098 (plain
gpt-5.6-*,azure/*gpt-5.6-*,azure/*gpt-6-astraandazure_ai/gpt-6-astra) was not taken. Azure's https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/reasoning says max works only on the Responses API, and the existing unit tests keep this route-blind flag off for rows that also serve Chat Completions, which reject max. Setting it failed those tests in CI, so #48098 stays open for its author.Checked with no change needed
OpenAI prices for gpt-6-astra, gpt-6.1-sol, gpt-6.1-terra and gpt-6-luna, including fast and ultrafast tiers, match https://developers.openai.com/api/docs/pricing. Claude Fable 5.2 matches https://platform.claude.com/docs/en/about-claude/pricing. Gemini 4 Hydrogen and Gemini 4 Carbon match https://ai.google.dev/gemini-api/docs/pricing. Carbon's announced December 1, 2026 increase to $4 and $20 is not in effect yet, so its row stays at today's price. Model list diffs against the OpenAI, Anthropic, xAI, Mistral, DeepSeek, Voyage and Perplexity catalogs found nothing missing.
Not changed, and why
Together lists 25 image models with published per-image or per-megapixel prices that have no registry rows, but LiteLLM has no Together image generation route, so they were left out. Together's 82 other missing catalog ids have no exact published per-token price on https://www.together.ai/pricing. Fireworks
accounts/fireworks/models/qwen3p8-2p4t-a95bshows in the inference API but its model page says "Serverless Not Supported" and no token price is published on https://fireworks.ai/pricing or the model page. Nebius could not be diffed because its models API needs a key. Geminimodels/aqa, Groqallam-2-7band the Cohere catalog gaps had no published per-token price.Other registry-only open PRs were re-checked and not absorbed. #49367 sets
supports_sampling_paramsfalse for Bedrock Grok and Kimi rows, #48582 and #32455 setbedrock_converse_supports_strict_toolsfalse for Bedrock Claude rows, and #48732 setssupports_system_messagesfor o3 and o4-mini. Each rests on live API behavior that the provider docs do not state, so they stay open for their authors. #32291 addschatgpt/gpt-5.4-miniwith no official source for its limits. The other open PRs that touch the registry add providers or change code, so they were left alone.Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
E2E exception at b04e5e5. The diff only edits registry data in both JSON copies, so the focused checks below fully cover it.
Type
🐛 Bug Fix