Drop gpt-4.1-nano and o4-mini ahead of their Oct 23 shutdown; rebuild README model list - #310
Merged
Merged
Conversation
OpenAI shuts down gpt-4.1-nano and o4-mini on 2026-10-23. Unlike the gpt-5/o3 entries, these are not dated snapshots behind a surviving alias: the shutdown list names those exact bare slugs, which are exactly what the gateway sends, so they hard-fail on that date. An SDK release plus user upgrade lag outruns 32 days, so shipping them would ship a known break. Removed, pointing at OpenAI's own replacements (GPT_5_6_LUNA and GPT_5_6_TERRA). Left O3, GPT_5 and GPT_5_MINI in place but documented: those are undated aliases of snapshots retiring 2026-12-11 (o3-2025-04-16, gpt-5-2025-08-07, gpt-5-mini-2025-08-07). OpenAI's deprecations page does not say whether such an alias is repointed to a successor or retired with its snapshot. If it is repointed, that is the same silent-redirect trap the retired Grok slugs had, so these need revisiting before December. Also rebuilt README's "Available Models" section, which had drifted badly: it listed six OpenAI models and stopped at Claude Opus 4.8 and Gemini 3.5, named the retired Grok 4 / 4 Fast / 4.1 Fast, and omitted ByteDance, Tencent and Z.ai entirely. It is now generated from the enum and lists all 63 models with their gateway ids, so prose and code cannot drift apart. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QmnaiLePKAQEkNfR8VPfja
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.
Follow-up to #309, which merged before this last commit landed on the branch. Rebased onto current
main.Removed:
GPT_4_1_NANOandO4_MINIOpenAI shuts both down on 2026-10-23, ~1 month out (deprecations).
These are unlike the
gpt-5/o3entries. Those are undated aliases whose dated snapshot retires; here OpenAI's shutdown list names the exact bare slugsgpt-4.1-nanoando4-mini— which is precisely what the gateway sends — so they hard-fail on the date. An SDK release plus user upgrade lag outruns 32 days, so shipping them ships a known break. Replacements are OpenAI's own:GPT_5_6_LUNAandGPT_5_6_TERRA, both already in the enum.Documented but kept:
O3,GPT_5,GPT_5_MINIThese are undated aliases of snapshots retiring 2026-12-11 (
o3-2025-04-16,gpt-5-2025-08-07,gpt-5-mini-2025-08-07). OpenAI's deprecations page does not state whether such an alias is repointed to a successor or retired alongside its snapshot.If it's repointed, that's the same silent-redirect trap the retired Grok slugs had — requests keep succeeding while quietly running a different model at a different cost, which is exactly what went unnoticed for four months on the xAI side. Noted in the enum so it gets revisited before December.
Rebuilt README's "Available Models" section
This list used prose names (
- GPT-5 Mini) rather than model ids, so the greps in #309 didn't catch it. It had drifted badly:Grok 4,Grok 4 Fast,Grok 4.1 FastIt's now generated from the
TEE_LLMenum and lists all 63 models with their gateway ids and enum members, grouped by provider, with image-generation models marked. Prose and code can no longer drift apart.Verification
_MODEL_LOOKUP(checked by importing the registry)make test— 179 passedmake check— ruff clean, mypy clean onsrc(30 files) andexamples(16 files)make docsStill open (not in this PR)
Unchanged from #309 — the SDK is behind the gateway on more than the model list:
llm.chat()has noaspect_ratioorresolutionparameter, so Seedream 5.0's cheaper 1.5K tier and image shape selection are unreachable from the SDK./v1/web_searchendpoint.moderationresponse block.web_search=Truedocstring still describes it as "the provider's native web search"; the gateway treats that flag as a deprecated no-op.The gateway-side mispricing flagged in #309 is now fixed in OpenGradient/tee-gateway#166.
🤖 Generated with Claude Code
https://claude.ai/code/session_01QmnaiLePKAQEkNfR8VPfja
Generated by Claude Code