Repository navigation
fix(model_prices): give the bare gpt-4o, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini aliases their 2027-01-14 shutdown date - #46732
mateo-berri wants to merge 1 commit into
Conversation
…-4.1-mini aliases their 2027-01-14 shutdown date 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)".
|
|
Automatic reviews are disabled for this repository. |
|
@litereview code-review |
|
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 ecc311d. Configure here.
✅ code-review5/5 · Ready for human reviewScope: full · Full PR review. Completed · Some checks not run. No correctness findings. Checks and execution details
View review · Reviewed |
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! |
|
Superseded by #46886, which carries these four GPT-4o and GPT-4.1 alias deprecation dates on a fresh main base |
TLDR
Problem this solves:
gpt-4o,gpt-4o-mini,gpt-4.1,gpt-4.1-minihad no shutdown date/model/deprecationsand the Slack deprecation alert skipped those deploymentsHow it solves it:
"deprecation_date": "2027-01-14"to those four aliases in both cost mapsUser Flow
Before: a proxy admin serving
openai/gpt-4osees no warning that it shuts down on 2027-01-14model: openai/gpt-4o(or gpt-4o-mini, gpt-4.1, gpt-4.1-mini)deprecated,imminentandupcominglistsAfter: the same deployments show up with their shutdown date
model: openai/gpt-4o(or gpt-4o-mini, gpt-4.1, gpt-4.1-mini)upcomingwith"deprecation_date":"2027-01-14", moving toimminent30 days out, which is when the Slack alert firesPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays 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 is a live proxy with a real OpenAI key, the local cost map, and these four deployments
Before (e344dbd)
curl -s localhost:32791/model/deprecations -H "Authorization: Bearer sk-1234"returns{"deprecated":[],"imminent":[],"upcoming":[],"warn_within_days":30,...}curl -s "localhost:32791/model/deprecations?warn_within_days=100" -H "Authorization: Bearer sk-1234"returns the same three empty listsAfter (ecc311d)
curl -s localhost:58915/model/deprecations -H "Authorization: Bearer sk-1234"returns all four underupcoming, e.g.{"model_name":"gpt-4o","litellm_model":"gpt-4o","deprecation_date":"2027-01-14","days_until_deprecation":91,"status":"upcoming","litellm_provider":"openai"}curl -s "localhost:58915/model/deprecations?warn_within_days=100" -H "Authorization: Bearer sk-1234"returns the same four underimminentcurl -s localhost:58915/v1/chat/completions -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Reply with OK."}],"max_tokens":5}'returns HTTP 200 with"content":"OK.", so the model still servesLink to Devin session: https://app.devin.ai/sessions/1650174c3a6246749647e47d1e1baeb2
Open in Devin Desktop: https://app.devin.ai/desktop/session/1650174c3a6246749647e47d1e1baeb2?variant=devin
Requested by: @mateo-berri
Note
Low Risk
Metadata-only updates to the model catalog JSON; no runtime logic or API behavior beyond deprecation reporting.
Overview
Adds
deprecation_date": "2027-01-14"to the bare OpenAI aliasesgpt-4o,gpt-4o-mini,gpt-4.1, andgpt-4.1-miniin bothmodel_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json.Dated variants in the same maps already carried shutdown metadata; these unpinned names did not, so
/model/deprecationsand Slack deprecation alerts ignored deployments configured with the short model ids. The new dates align with OpenAI’s published deprecation schedule for those snapshots.Reviewed by Cursor Bugbot for commit ecc311d. Bugbot is set up for automated code reviews on this repo. Configure here.