Moving code off gpt-4o, gpt-4o-mini and Claude Sonnet 4.5
The model `computer-use-preview-2025-03-11` has been deprecatedShort answer: Search your code, environment files and config for the retiring model IDs and change them before each date: gpt-4o, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini snapshots stop on 14 January 2027 (replacement gpt-6-luna), claude-sonnet-4-5-20250929 on 30 November 2026. gpt-6-luna is a reasoning model, so check tool calls and sampling settings, not only the ID.
Scan your code and config for retiring models (free, in your browser)
Where the model is set
Model IDs hide in more places than the client call: .env files, YAML or TOML config, LangChain
constructors (ChatOpenAI(model=…)), OpenRouter IDs (openai/gpt-4o-mini), Bedrock IDs
(anthropic.claude-sonnet-4-5-20250929-v1:0), Vertex IDs (claude-sonnet-4-5@20250929) and fine-tune IDs
(ft:gpt-4o-mini-2024-07-18:…). The scanner recognises all of these forms. The error above is what Chat Completions
returned the day after OpenAI's July 2026 shutdown; the Responses API answered "Model not found …", and an ID OpenAI does not
recognise returns 404 model_not_found. OpenAI does not document the exact text.
Fix
- Search the repository:
git grep -nE "gpt-4o|gpt-4\.1|gpt-5(-mini|-nano)?\b|\bo3\b|whisper-1|tts-1|claude-sonnet-4-5", or paste files into the scanner. - Replace each ID with the replacement in the scanner's list. Keep the ID in one config value so the next change is one line.
- gpt-6-luna on Chat Completions with tools: set
reasoning_effort="none", or move the call to the Responses API. With any other effort, removetemperature,top_p,top_logprobsandlogprobs. Usemax_completion_tokensinstead ofmax_tokens. - Claude: move off
claude-sonnet-4-5-20250929toclaude-sonnet-5-5before 30 November 2026. If you upgrade to Pythonanthropic2.0.0 or@anthropic-ai/sdk1.0.0, stop sendingtemperature,top_pandtop_k: API version 2026-10-21 rejects them with a 400. - Fine-tunes: a fine-tune stops with its base snapshot. Retrain on a current base before 6 January 2027, when new fine-tuning jobs end.
- Add a check in CI: compare the IDs in your code with /model-registry.json or with the
shutdown_datefield of OpenAI's List models endpoint.
Get the kit ($29, agencies $79)
Watch out
- Bare aliases such as
gpt-4o-miniare not named in OpenAI's 14 January notice, but they point only to snapshots that are. Do not rely on the alias moving to a new model. - Test with a day of real prompts: a reasoning model can answer differently and use more output tokens.
Sources
- OpenAI: Deprecations
- OpenAI: gpt-6-luna
- OpenAI: Using the latest model
- OpenAI community: errors seen the day after the July 2026 shutdown
- Anthropic: Model deprecations
- Anthropic: Migrating to API version 2026-10-21
Other platforms
AI model shutdown calendar and scanner
Facts checked 28 October 2026. Not affiliated with OpenAI, Anthropic, Google or Python, Node.js and LangChain code.