Repository navigation
fix(model_prices): registry audit, perplexity agent api models and claude-sonnet-4-5 200k context - #45647
Conversation
…aude-sonnet-4-5 200k context 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 performance
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
LiteLLM deleted every OpenRouter row on 2026-10-09 (BerriAI/litellm#45665), since OpenRouter reports each response's real cost, so the generator's shrink guard refused the new table. OpenRouter is no longer kept, and the guard no longer counts the keys of an endpoint retired on purpose. Lookup now prices openrouter|<maker>/<model> at the maker's own rate for Anthropic, OpenAI, Google and xAI, accepting OpenRouter's dotted versions. Open-weight models go to whichever host OpenRouter picks, at up to half the maker's rate, so they and ":variant" names stay unpriced unless the harness recorded a cost. Two other upstream changes land with it: Sonnet 4.5's 200k tier went with Anthropic's retired 1M-context beta (BerriAI/litellm#45647), so the tier canary moves to Haiku 5.5's 100k tier, and Sonnet 5.5 cache reads fell to $0.10 per million tokens on 2026-10-07.
Bedrock Titan Text Express now carries the AWS list price (BerriAI/litellm#45793), and Sonnet 4.5 no longer has above-200k tiers after Anthropic retired its 1M-context beta (BerriAI/litellm#45647). Signed-off-by: majiayu000 <1835304752@qq.com>
* chore(pricing): refresh runtime catalog from LiteLLM * test(pricing): follow upstream Titan and Sonnet 4.5 corrections Bedrock Titan Text Express now carries the AWS list price (BerriAI/litellm#45793), and Sonnet 4.5 no longer has above-200k tiers after Anthropic retired its 1M-context beta (BerriAI/litellm#45647). Signed-off-by: majiayu000 <1835304752@qq.com> --------- Signed-off-by: majiayu000 <1835304752@qq.com> Co-authored-by: majiayu000 <19658300+majiayu000@users.noreply.github.com>
Summary
Rolling registry audit PR for 2026-10-09 (second run). Root and backup cost maps stay in sync and the schema was regenerated. The only open Devin registry PR, #45623, removes every OpenRouter row together with tests, which makes it a structural refactor rather than an audit, so this PR serves as the rolling one and #45623 is left alone
Anthropic (absorbed from #45606)
claude-sonnet-4-5andclaude-sonnet-4-5-20250929:max_input_tokens1000000 changes to 200000, and every*_above_200k_tokens*key on those two rows is removed. Anthropic retired thecontext-1m-2025-08-07beta for Sonnet 4.5 and Sonnet 4, and requests above 200k now error. The schema dropscache_creation_input_token_cost_above_200k_tokens_batchesbecause no row uses it anymore. Bedrock rows are unchangedSources: https://platform.claude.com/docs/en/build-with-claude/context-windows and https://platform.claude.com/docs/en/release-notes/overview
Perplexity Agent API (new rows)
The prices come from Perplexity's own
GET https://api.perplexity.ai/v1/modelspricing block (USD per 1M tokens), which is the same catalog the docs page renders. The new rows use the same shape as their siblingperplexity/*rowsperplexity/openai/gpt-5-nanoperplexity/openai/gpt-5.3-codexperplexity/openai/gpt-6-astraperplexity/perplexity/deepseek-v4-pro-0813Source: https://docs.perplexity.ai/docs/agent-api/models
Checked and not changed
These were dropped because no official per-token price is published
Gemini
antigravity-preview-*: this is an agent and https://ai.google.dev/gemini-api/docs/pricing has no per-token row. Geminiaqais legacy and only supportsgenerateAnswerGroq
allam-2-7b: it is in the model API but missing from https://groq.com/pricingFireworks
qwen3p8-2p4t-a95b:serverlessModesis empty, so it is on-demand onlyCohere
command-a-reasoning-08-2025,command-a-vision-07-2025,north-*,tiny-aya-*andcohere-transcribe-03-2026: https://cohere.com/pricing shows no per-token pricesTogether: catalog-only models with no newly priced serverless additions in the last 120 days
OpenAI: the missing IDs are fine-tune IDs or dated snapshots of rows that already exist, and they were not copied from their aliases
Anthropic, Mistral, xAI and DeepSeek: the model APIs show no missing models
ci_cd/cost_map_pins.jsondoes not exist onmain, so no pinned flags were affectedChecks
python3 ci_cd/check_files_match.py,generate_model_prices_schema.py --check,cost_map_guard.pyandLITELLM_LOCAL_MODEL_COST_MAP=True pytest tests/unit/test_model_prices_schema.py tests/unit/test_model_cost_aliases.py(86 passed) all passLink to Devin session: https://app.devin.ai/sessions/39bc2ce33daf4d27baab692c5c2eac33
Open in Devin Desktop: https://app.devin.ai/desktop/session/39bc2ce33daf4d27baab692c5c2eac33?variant=devin