Skip to content

fix(model_prices): drop anthropic deprecation floors and correct azure gpt-4.1-nano retirement date - #41964

Merged
kerry-berri merged 5 commits into
mainfrom
litellm_registry_audit_20260919
Sep 19, 2026
Merged

kerry-berri merged 5 commits into
mainfrom
litellm_registry_audit_20260919

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • 17 Anthropic entries stored "not sooner than" floors as deprecation_date, so /model/deprecations reports them as deprecated once the floor passes
  • Azure gpt-4.1-nano entries carried a stale 2026-10-14 retirement date

How it solves it:

User Flow

Before: a proxy admin checking upcoming retirements sees active Claude models flagged as deprecating and a wrong date for Azure gpt-4.1-nano

  1. They send GET https://litellm-domain/model/info
  2. claude-sonnet-4-5 reports deprecation_date: "2026-09-29" although Anthropic only says "not sooner than" that date and the model is active
  3. azure/gpt-4.1-nano reports deprecation_date: "2026-10-14", six months earlier than Microsoft's schedule

After: the same call reports only confirmed retirement dates

  1. They send GET https://litellm-domain/model/info
  2. claude-sonnet-4-5 and the other active Claude models carry no deprecation_date
  3. azure/gpt-4.1-nano reports deprecation_date: "2027-04-14"

Relevant issues

Supports #26900 (deprecation alerts rely on deprecation_date)

Affected release

Linear ticket

Sources (every changed value)

Key(s) Field Old New Source
claude-fable-5, claude-fable-5-1, claude-haiku-4-5, claude-haiku-4-5-20251001, claude-mythos-5-1, claude-opus-4-5, claude-opus-4-5-20251101, claude-opus-4-6, claude-opus-4-6-20260205, claude-opus-4-7, claude-opus-4-7-20260416, claude-opus-4-8, claude-opus-5, claude-sonnet-4-5, claude-sonnet-4-5-20250929, claude-sonnet-4-6, claude-sonnet-5 deprecation_date Anthropic floor date (removed) https://docs.anthropic.com/en/docs/about-claude/model-deprecations (every row is `Active
azure/gpt-4.1-nano, azure/gpt-4.1-nano-2025-04-14, azure/us/gpt-4.1-nano, azure/us/gpt-4.1-nano-2025-04-14, azure/eu/gpt-4.1-nano deprecation_date 2026-10-14 2027-04-14 https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule (row: `gpt-4.1-nano

Values were read from the raw HTML tables (curl) and cross-checked with r.jina.ai

Vertex AI and Azure AI Claude entries whose dates happen to match Anthropic's floors were left alone: those platforms publish their own retirement schedules and this run could not verify them from raw official tables

Rolling PR bookkeeping

Absorbed: #41842 (sync-bot Azure) - identical 5 field changes, re-verified above

Not absorbed (code/behavior or not verifiable from official docs this run):

Checked with no changes needed: OpenAI, Gemini/Vertex, Bedrock, Fireworks, Groq, xAI, Mistral, Cohere, DeepSeek pricing (no mismatches in the parsed tables; several pages are JS-rendered and were not used as evidence)

Pre-Submission checklist

  • I have added meaningful tests (data-only change, existing schema/cost-map tests cover it)
  • The handful of test files covering my change pass locally: tests/test_litellm/test_model_prices_schema.py, tests/test_litellm/test_cost_map_guard.py (74 passed)
  • My PR passes all required CI/CD checks (ci_cd/check_files_match.py, ci_cd/generate_model_prices_schema.py --check)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review

Screenshots / Proof of Fix

$ python3 ci_cd/check_files_match.py
Passed! Files model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json match.
$ python ci_cd/generate_model_prices_schema.py --check
model_prices_and_context_window.schema.json is in sync and model_prices_and_context_window.json validates against it
$ LITELLM_LOCAL_MODEL_COST_MAP=True pytest tests/test_litellm/test_model_prices_schema.py tests/test_litellm/test_cost_map_guard.py
74 passed

Link to Devin session: https://app.devin.ai/sessions/86f20e45206a49589a971d4101c81f55
Open in Devin Desktop: https://app.devin.ai/desktop/session/86f20e45206a49589a971d4101c81f55?variant=devin

…c's model deprecations page

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…04-14 per Microsoft schedule

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from a team September 19, 2026 13:18
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

This PR should not merge until claude-mythos-5 metadata stops treating a vendor-provided lower bound as a confirmed deprecation date.

Findings

  1. P1 Unconfirmed deprecation date ▶

Summary

This PR synchronizes model retirement metadata across the primary and backup catalogs.

  • Updates all five Azure gpt-4.1-nano aliases to April 14, 2027.
  • Adds June 9, 2027 as an exact claude-mythos-5 deprecation date, although the cited vendor wording only establishes a lower bound.

Reviews (1) · Last reviewed commit: "fix(model_prices): update azure gpt-4.1-..."

Comment thread model_prices_and_context_window.json Resolved
@codspeed

codspeed Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_registry_audit_20260919 (2f1c866) with main (362be56)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (6718fd6) during the generation of this report, so 362be56 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…llback test

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…cation_date

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title fix(model_prices): add claude-mythos-5 deprecation date and correct azure gpt-4.1-nano retirement date fix(model_prices): drop anthropic deprecation floors and correct azure gpt-4.1-nano retirement date Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants