Repository navigation
Add deprecation_date to 62 models, each cited to the provider's own page - #36152
Closed
nilaypatell wants to merge 1 commit into
Closed
nilaypatell wants to merge 1 commit into
nilaypatell wants to merge 1 commit into
Conversation
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.
Contributor
Greptile SummaryThis PR adds provider-sourced retirement dates to 62 existing model records in both copies of the model metadata.
Confidence Score: 5/5The 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.
|
| 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
6 tasks done
Contributor
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
deprecation_dateis 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_datewas 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 fourgemini-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
deprecation_datebabbage-002chatgpt-4o-latestdall-e-2dall-e-3davinci-002gpt-3.5-turbo-0125gpt-3.5-turbo-instructgpt-4-turbogpt-4o-2024-05-13gpt-4o-audio-previewgpt-4o-mini-audio-previewgpt-4o-mini-realtime-previewgpt-4o-mini-search-preview-2025-03-11gpt-4o-mini-transcribe-2025-03-20gpt-4o-realtime-previewgpt-4o-realtime-preview-2024-12-17gpt-4o-realtime-preview-2025-06-03gpt-4o-search-preview-2025-03-11gpt-5-2025-08-07gpt-5-chat-latestgpt-5-codexgpt-5-mini-2025-08-07gpt-5-nano-2025-08-07gpt-5-pro-2025-10-06gpt-5.1-chat-latestgpt-5.1-codexgpt-5.1-codex-maxgpt-5.1-codex-minigpt-5.2-chat-latestgpt-5.2-codexgpt-5.3-chat-latestgpt-audio-mini-2025-10-06gpt-image-1gpt-image-1-minigpt-image-1.5gpt-realtime-mini-2025-10-06o1-proo3-2025-04-16o3-pro-2025-06-10sora-2sora-2-protext-moderation-00713 models — source: https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html
deprecation_dateai21.jamba-1-5-large-v1:0ai21.jamba-1-5-mini-v1:0amazon.nova-canvas-v1:0anthropic.claude-3-5-sonnet-20240620-v1:0anthropic.claude-3-5-sonnet-20241022-v2:0anthropic.claude-3-7-sonnet-20250219-v1:0anthropic.claude-3-haiku-20240307-v1:0anthropic.claude-3-sonnet-20240229-v1:0anthropic.claude-opus-4-1-20250805-v1:0anthropic.claude-sonnet-4-20250514-v1:0cohere.command-r-plus-v1:0cohere.command-r-v1:0twelvelabs.marengo-embed-2-7-v1:05 models — source: https://docs.cohere.com/docs/deprecations
deprecation_dateembed-english-light-v2.0embed-english-v2.0embed-multilingual-v2.0rerank-english-v2.0rerank-multilingual-v2.02 models — source: https://platform.claude.com/docs/en/about-claude/model-deprecations
deprecation_dateclaude-3-haiku-20240307claude-opus-4-1Not touched in this PR — flagging them rather than changing them, since they may be deliberate:
claude-3-opus-20240229claude-opus-4-20250514claude-sonnet-4-20250514gpt-4-0613gpt-4-1106-previewThe two
20250514rows 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
model_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.jsonwere already out of sync atmainbefore this change (ci_cd/check_files_match.pyfails onmaintoday). 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.model_prices_and_context_window.schema.jsonwithjsonschema— passes.