Repository navigation
fix(model_prices): registry audit 2026-10-17, Perplexity decider v1.2 rows, Azure Mistral and Vertex Gemini deprecation dates - #47114
Conversation
…x Gemini deprecation dates 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! |
BrickerP
left a comment
There was a problem hiding this comment.
Review (APPROVE)
Checked head 50f2cd06997286218cedde7828c92d8a0324a5fd. Root model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json share the same blob SHA (76efee084621…), so the pair stays byte-identical.
Dates vs sources
- Azure AI Mistral (
azure_ai/ministral-3b,azure_ai/mistral-medium-2505,azure_ai/mistral-small-2503) →2026-12-09matches the MS Learn Foundry retirement schedule (partners Mistral AI section). - Vertex:
vertex_ai/gemini-4-argon→2027-10-13,vertex_ai/gemini-3.8-flash+ baregemini-3.8-flash(vertex_ai-language-models) →2027-09-02,vertex_ai/gemini-3.8-live→2027-09-25match Google’s model-versions retirement column (“… or later”), same earliest-date convention as existingvertex_ai/gemini-3.5-flash(2027-05-19). - Cyber / “no retirement date announced” rows correctly left alone.
Data-only, keys look right, no mismatched dates. LGTM.
…ows with latest aliases Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
TLDR
Problem this solves:
deprecation_date/model/deprecationsendpoint #26900 would miss thempplx-decider-v1.2andpplx-decider-flash-v1.2, plus their-latestaliases, had no rowsHow it solves it:
deprecation_dateto three Azure AI Mistral rows and four Vertex Gemini rowsRelevant issues
Supports #26900
Changes and sources
Perplexity
Source https://docs.perplexity.ai/docs/decisions/quickstart, which lists $0.02 per 1M input tokens for
pplx-decider-v1.2, $0.01 forpplx-decider-flash-v1.2, free output tokens and a 256K token context window, and sayspplx-decider-latestandpplx-decider-flash-latestselect those two models and bill at their rates. The rows usemodeevaluationlike the existingperplexity/pplx-decider-v1.1-27browperplexity/pplx-decider-v1.2perplexity/pplx-decider-latestperplexity/pplx-decider-flash-v1.2perplexity/pplx-decider-flash-latestAzure AI and Vertex AI deprecation dates
Every Azure and Vertex date below was read from the raw HTML table of the official page and cross-checked against the r.jina.ai extraction of the same page, and both agree
Azure retirement schedule (https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule), Mistral AI section, retirement date 2026-12-09 for Ministral-3B, mistral-medium-2505 and mistral-small-2503
azure_ai/ministral-3bdeprecation_date2026-12-09azure_ai/mistral-medium-2505deprecation_date2026-12-09azure_ai/mistral-small-2503deprecation_date2026-12-09Vertex AI model versions (https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions), retirement column. The page lists these as "or later" dates, and the registry already stores that earliest date for the same kind of row (for example
vertex_ai/gemini-3.5-flashis2027-05-19from "May 19, 2027 or later")vertex_ai/gemini-4-argondeprecation_date2027-10-13vertex_ai/gemini-3.8-flashdeprecation_date2027-09-02gemini-3.8-flash(vertex_ai-language-models)deprecation_date2027-09-02vertex_ai/gemini-3.8-livedeprecation_date2027-09-25Checked and left alone
A later run on 2026-10-17 diffed each provider's live model API against the registry. OpenAI (only fine-tuning checkpoints missing), Anthropic, xAI, Mistral and DeepSeek had no missing models, and the newest Anthropic rows (
claude-opus-5-5,claude-sonnet-5-5,claude-haiku-5-5with its 100k tiers) match https://platform.claude.com/docs/en/about-claude/pricinggemini/gemini-4-argonkeepsmax_output_tokens1048576 because https://ai.google.dev/gemini-api/docs/models/gemini-4-argon says 65,536 by default but up to 1,048,576 with long decode.deepseek/deepseek-flashanddeepseek/deepseek-v4-prokeepmax_input_tokens1000000 since https://api-docs.deepseek.com/quick_start/pricing only says "1M" while the API says 1048576.mistral/codestral-2508keeps 128000 because https://docs.mistral.ai/models/codestral-25-08 says 128k while the Mistral models API reports 256000. Gemini API IDsantigravity-preview-*andaqaget no rows since https://ai.google.dev/gemini-api/docs/pricing publishes no per-model token price for themCohere
command-a-reasoning-08-2025andcommand-a-vision-07-2025are listed on https://docs.cohere.com/docs/models but https://cohere.com/pricing shows no per-token price for them, so no rows were added.embed-multilingual-light-v3.0hasinput_cost_per_token0.0001 ($100 per 1M), far above its 1e-07 siblings, but that pricing page lists no per-token Embed v3 price to confirm a correction, so it is flagged only. Fireworksaccounts/fireworks/models/qwen3p8-2p4t-a95bis on-demand only per https://fireworks.ai/models/fireworks/qwen3p8-2p4t-a95b ("Serverless: Not supported"), so it has no per-token price. Groqallam-2-7bappears in the Groq models API, but no official per-token price was found for it. OpenRouter rows were removed on purpose in a five-part series ending with #45669, so none were re-added.ci_cd/cost_map_pins.jsondoes not exist on main, so no pinned flags appliedazure_ai/kimi-k2.7-codeandazure_ai/claude-opus-5-5-fastkeep their Models API dates (2027-04-16 and 2027-10-01) even though the retirement schedule page says 2026-10-03 and 2027-01-15, since #45945 moved kimi-k2.7-code to the Models API date on purpose.azure/gpt-realtime-2keeps 2026-10-31 because the schedule page shows no date to compare against.azure/gpt-realtime-mini-2025-10-06has two rows on the schedule page with different dates, so it stays as isBedrock legacy lifecycle (https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle-legacy.html) lists Claude 3.5 Sonnet, 3.5 Sonnet v2 and 3.7 Sonnet with EOL 2026-11-13 only in a few regions, so a region-agnostic date was not added. Vertex rows that say "No retirement date announced" (
gemini-4-argon-cyber-permissive,gemini-3.8-flash-cyber,gemini-nano-banana-2.1,gemini-embedding-2) get no dateOpenAI, Anthropic, Gemini API and Groq deprecation tables matched the registry for every key that maps cleanly
Other open registry PRs
None were absorbed. #41376 adds flags to xAI grok-4 rows that were already removed from main after their 2026-05-15 deprecation, so it has nothing left to apply. #46856 is the scripted daily Together AI sync and is left to that pipeline. #44651 adds SambaNova rows a maintainer already declined to take through the rolling PR. #29898 and the other open PRs that touch the JSON are code or provider changes that only touch it incidentally
Pre-Submission checklist
Screenshots / Proof of Fix
Data-only change.
python3 ci_cd/check_files_match.pypasses with both files unchanged by the check, duplicate-key JSON parsing passes for both files, andLITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_cost_aliases.pyandtests/unit/test_cost_map_guard.pyplustests/unit/test_model_prices_and_context_window.pypass (109 passed)Type
🐛 Bug Fix
Link to Devin session: https://app.devin.ai/sessions/46121b8e17144b9f97d03b299686997a
Open in Devin Desktop: https://app.devin.ai/desktop/session/46121b8e17144b9f97d03b299686997a?variant=devin