fix(model_prices): add provider-announced deprecation_date to 205 registry entries - #37283
Conversation
…istry entries Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
|
Greptile SummaryAdds provider-announced deprecation metadata to 205 model registry entries so configured deployments can appear in deprecation reporting and alerts.
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified in the synchronized metadata additions. The change only adds schema-compatible deprecation dates to matching entries in both registry copies, and no concrete incorrect mapping, malformed value, or consumer incompatibility was established.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds valid ISO-formatted deprecation dates to 205 canonical registry entries without changing existing fields. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the canonical registry's 205 deprecation-date additions exactly. |
Reviews (1): Last reviewed commit: "fix(model_prices): add provider-announce..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
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 3d523d6. Configure here.
TLDR
Problem this solves:
deprecation_date/model/deprecations(feat(proxy): proactive model deprecation alerts and/model/deprecationsendpoint #26900) therefore reports them as healthyHow it solves it:
deprecation_datefrom each provider's official retirement docUser Flow
Before: a proxy admin who deploys
claude-sonnet-4-5,azure/gpt-5,vertex_ai/claude-opus-5andbabbage-002gets no retirement warning even though all four have published retirement datesGET https://litellm-domain/model/deprecationswith their master key{"deprecated": [], "imminent": [], "upcoming": []}After: the same call lists every deployment whose provider has announced a retirement date
GET https://litellm-domain/model/deprecationswith their master keyupcomingnow containslegacy-babbage(2026-09-28),sonnet-4-5(2026-09-29),vertex-opus-5(2027-01-24) andazure-gpt-5(2027-02-09), each withdays_until_deprecationRelevant issues
Supports #26900
Linear ticket
Resolves LIT-5850
What changed, by source
Every date below comes from the provider's own retirement/deprecation doc. Only entries that had no
deprecation_datewere touched; where a provider doc was ambiguous (unversioned Azure alias covering versions with differing dates,azure_ai/model_router, Gemini-API dates for models exposed undervertex_ai, conflicting rows forgpt-realtime-mini-2025-10-06) the entry was left aloneazure/*,azure_ai/*)openai,text-completion-openai, incl. image-size variants)claude-*)gemini/gemini-robotics-er-1.6-preview)Representative values:
"claude-sonnet-4-5": { + "deprecation_date": "2026-09-29" # Anthropic: not sooner than Sept 29, 2026 "claude-opus-5": { + "deprecation_date": "2027-07-24" # Anthropic: not sooner than July 24, 2027 "vertex_ai/claude-opus-5": { + "deprecation_date": "2027-01-24" # Vertex: not sooner than January 24, 2027 "azure/gpt-5": { + "deprecation_date": "2027-02-09" # Azure: gpt-5 v2025-08-07 retires 2027-02-09 "azure_ai/deepseek-r1": { + "deprecation_date": "2026-08-13" # Azure Foundry: DeepSeek-R1 retired 2026-08-13 "gemini-2.5-pro": { + "deprecation_date": "2026-10-20" # Vertex: retirement October 20, 2026 "babbage-002": { + "deprecation_date": "2026-09-28" # OpenAI: shutdown 2026-09-28Note that per-provider dates for the same model family deliberately differ (Anthropic direct
claude-opus-5= 2027-07-24 vs Vertex = 2027-01-24 vs Azure Foundry's own schedule), matching each provider's published date rather than normalising themAudited with no verifiable change needed: Bedrock (already fully in sync with the AWS model lifecycle table), Groq, Mistral, Cohere, xAI, DeepSeek, Fireworks
Pre-Submission checklist
No new tests: this is a data-only change covered by the existing registry schema tests and the
/model/deprecationstests (tests/test_litellm/test_model_prices_schema.py19 passed, deprecation endpoint + util tests 22 passed, backup-sync tests 5 passed,make pre-commitclean)Delays 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
Shared setup,
/tmp/dep_config.yaml:Before (4fd7a73)
LITELLM_LOCAL_MODEL_COST_MAP=True litellm --config /tmp/dep_config.yaml --port 4001(run from a worktree at the merge base)curl -s -H 'Authorization: Bearer sk-1234' http://localhost:4001/model/deprecations | python3 -m json.tool{ "deprecated": [], "imminent": [], "upcoming": [], "warn_within_days": 30, "checked_at": "2026-08-18T13:19:51.395249Z" }After (3d523d6)
LITELLM_LOCAL_MODEL_COST_MAP=True litellm --config /tmp/dep_config.yaml --port 4000curl -s -H 'Authorization: Bearer sk-1234' http://localhost:4000/model/deprecations | python3 -m json.tool{ "deprecated": [], "imminent": [], "upcoming": [ { "model_name": "legacy-babbage", "litellm_model": "babbage-002", "deprecation_date": "2026-09-28", "days_until_deprecation": 41, "status": "upcoming", "litellm_provider": "text-completion-openai" }, { "model_name": "sonnet-4-5", "litellm_model": "claude-sonnet-4-5", "deprecation_date": "2026-09-29", "days_until_deprecation": 42, "status": "upcoming", "litellm_provider": "anthropic" }, { "model_name": "vertex-opus-5", "litellm_model": "vertex_ai/claude-opus-5", "deprecation_date": "2027-01-24", "days_until_deprecation": 159, "status": "upcoming", "litellm_provider": "vertex_ai-anthropic_models" }, { "model_name": "azure-gpt-5", "litellm_model": "azure/gpt-5", "deprecation_date": "2027-02-09", "days_until_deprecation": 175, "status": "upcoming", "litellm_provider": "azure" } ], "warn_within_days": 30, "checked_at": "2026-08-18T13:17:04.707460Z" }Type
🐛 Bug Fix
Caveats (if any)
Final Attestation
Link to Devin session: https://app.devin.ai/sessions/77eaacb703734bc1a155b51c5b35f737
Note
Cursor Bugbot is generating a summary for commit 3d523d6. Configure here.