Skip to content

Add deprecation_date to 62 models, each cited to the provider's own page - #36152

Closed
nilaypatell wants to merge 1 commit into
BerriAI:mainfrom
nilaypatell:deprecation-dates-from-provider-pages
Closed

nilaypatell wants to merge 1 commit into
BerriAI:mainfrom
nilaypatell:deprecation-dates-from-provider-pages

Conversation

@nilaypatell

Copy link
Copy Markdown

deprecation_date is currently set on 93 of 2,988 entries (3.1%). This fills 62 of the gaps.

Every value is transcribed from the provider's own published retirement table, and I verified each one against the raw page rather than a summarizer — 62 of 62 confirmed. No existing value is changed, nothing is removed, and no other field is touched: the diff is 62 added lines in each file.

On the convention

The schema describes the field as "Date the provider deprecates the model." I checked what the existing data actually encodes before adding anything: of the 14 models where a deprecation_date was already present and I had an independent provider-cited date, 9 matched the shutdown/retirement date exactly (claude-3-7-sonnet-20250219 → 2026-02-19, gpt-3.5-turbo-1106 → 2026-09-28, the four gemini-2.0-flash* → 2026-06-01, gpt-4-0314 → 2026-03-26, text-embedding-004 → 2026-01-14). So these 62 use the same convention: the date the model stops serving requests. Happy to switch them to announcement dates if that was the intent — say the word and I will regenerate.

The values

42 models — source: https://developers.openai.com/api/docs/deprecations
model deprecation_date
babbage-002 2026-09-28
chatgpt-4o-latest 2026-02-17
dall-e-2 2026-05-12
dall-e-3 2026-05-12
davinci-002 2026-09-28
gpt-3.5-turbo-0125 2026-10-23
gpt-3.5-turbo-instruct 2026-09-28
gpt-4-turbo 2026-10-23
gpt-4o-2024-05-13 2026-10-23
gpt-4o-audio-preview 2026-05-07
gpt-4o-mini-audio-preview 2026-05-07
gpt-4o-mini-realtime-preview 2026-05-07
gpt-4o-mini-search-preview-2025-03-11 2026-07-23
gpt-4o-mini-transcribe-2025-03-20 2027-01-20
gpt-4o-realtime-preview 2026-05-07
gpt-4o-realtime-preview-2024-12-17 2026-05-07
gpt-4o-realtime-preview-2025-06-03 2026-05-07
gpt-4o-search-preview-2025-03-11 2026-07-23
gpt-5-2025-08-07 2026-12-11
gpt-5-chat-latest 2026-07-23
gpt-5-codex 2026-07-23
gpt-5-mini-2025-08-07 2026-12-11
gpt-5-nano-2025-08-07 2026-12-11
gpt-5-pro-2025-10-06 2026-12-11
gpt-5.1-chat-latest 2026-07-23
gpt-5.1-codex 2026-07-23
gpt-5.1-codex-max 2026-07-23
gpt-5.1-codex-mini 2026-07-23
gpt-5.2-chat-latest 2026-08-10
gpt-5.2-codex 2026-07-23
gpt-5.3-chat-latest 2026-08-10
gpt-audio-mini-2025-10-06 2026-07-23
gpt-image-1 2026-10-23
gpt-image-1-mini 2026-12-01
gpt-image-1.5 2026-12-01
gpt-realtime-mini-2025-10-06 2026-07-23
o1-pro 2026-10-23
o3-2025-04-16 2026-12-11
o3-pro-2025-06-10 2026-12-11
sora-2 2026-09-24
sora-2-pro 2026-09-24
text-moderation-007 2025-10-27
13 models — source: https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html
model deprecation_date
ai21.jamba-1-5-large-v1:0 2026-11-26
ai21.jamba-1-5-mini-v1:0 2026-11-26
amazon.nova-canvas-v1:0 2026-09-30
anthropic.claude-3-5-sonnet-20240620-v1:0 2026-07-30
anthropic.claude-3-5-sonnet-20241022-v2:0 2026-07-30
anthropic.claude-3-7-sonnet-20250219-v1:0 2026-07-30
anthropic.claude-3-haiku-20240307-v1:0 2026-09-10
anthropic.claude-3-sonnet-20240229-v1:0 2026-07-30
anthropic.claude-opus-4-1-20250805-v1:0 2027-01-08
anthropic.claude-sonnet-4-20250514-v1:0 2026-10-14
cohere.command-r-plus-v1:0 2026-08-19
cohere.command-r-v1:0 2026-08-19
twelvelabs.marengo-embed-2-7-v1:0 2026-11-30
5 models — source: https://docs.cohere.com/docs/deprecations
model deprecation_date
embed-english-light-v2.0 2026-04-04
embed-english-v2.0 2026-04-04
embed-multilingual-v2.0 2026-04-04
rerank-english-v2.0 2025-04-30
rerank-multilingual-v2.0 2025-04-30
2 models — source: https://platform.claude.com/docs/en/about-claude/model-deprecations
model deprecation_date
claude-3-haiku-20240307 2026-04-20
claude-opus-4-1 2026-08-05
### Five existing values that appear to disagree with the provider

Not touched in this PR — flagging them rather than changing them, since they may be deliberate:

model current provider's page says
claude-3-opus-20240229 2026-05-01 2026-01-05
claude-opus-4-20250514 2026-05-14 2026-06-15
claude-sonnet-4-20250514 2026-05-14 2026-06-15
gpt-4-0613 2025-06-06 2026-10-23
gpt-4-1106-preview 2026-03-26 2026-10-23

The two 20250514 rows are worth a look: both currently read exactly one year after the model's own date stamp, which is the signature of a heuristic rather than a published date. Anthropic's deprecation table gives 2026-06-15 for both. I can send a follow-up PR for these if you want them corrected.

Notes

  • Both model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json were already out of sync at main before this change (ci_cd/check_files_match.py fails on main today). Rather than copy one over the other and drag ~280 unrelated lines into this PR, I applied the same 62 additions to each file independently. Both now carry identical additions.
  • Validated against model_prices_and_context_window.schema.json with jsonschema — passes.
  • These dates come from driftcite, which tracks provider deprecation pages daily. The model-lifecycle rows are CC BY 4.0, so you are free to take them. Standing offer: I'm happy to keep this field current via a recurring automated PR rather than have it drift again — just tell me the cadence and shape you'd want.

Every value is transcribed from the provider's published retirement table
and verified against the raw page rather than a summary. No existing value
is changed and nothing is removed; this is 62 added lines in each file.

The two JSON files were already out of sync before this change, so the
additions are applied to each independently rather than copying one over
the other, which would have pulled in 280 unrelated lines.
@CLAassistant

CLAassistant commented Aug 7, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@greptile-apps

greptile-apps Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds provider-sourced retirement dates to 62 existing model records in both copies of the model metadata.

  • Adds OpenAI, Anthropic, Amazon Bedrock, and Cohere model deprecation dates.
  • Keeps the canonical and bundled backup additions aligned.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete changed-code failure identified.

The changes are limited to schema-valid informational dates, the additions match across the canonical and bundled model maps, and no runtime code currently acts on this metadata.

Important Files Changed

Filename Overview
model_prices_and_context_window.json Adds validly formatted deprecation metadata to 62 canonical model entries without changing pricing or capability fields.
litellm/model_prices_and_context_window_backup.json Mirrors the same deprecation metadata additions in the packaged fallback model map.

Reviews (1): Last reviewed commit: "Add deprecation_date to 62 models, each ..." | Re-trigger Greptile

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

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