I help teams migrate apps off retiring AI models before they break.
Hire me: https://prasadrandika.github.io
OpenAI is shutting down GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini in the API on January 14, 2027. After that date, any app that still calls them will fail. I find every place an app depends on the old model, move it to the recommended replacement, test it, and document the change.
- Problem: The app answered questions with
gpt-4o-mini, which will stop working on Jan 14, 2027. - What I found: The replacement,
gpt-6-luna, is a reasoning model, and some reasoning models reject atemperaturesetting. I checked what the app's locked LangChain version sends for the new model: notemperature, so no package upgrade was needed. - Fix: I opened a PR switching the model to
gpt-6-luna, tested against a mock OpenAI server. After that, the maintainer applied the model change himself (139efd3), so my PR now only fixes the outdated "GPT-4" mentions in the README. - Links: My fork, with migration notes · Pull request (merged)
- Problem: The API used
gpt-4o-miniboth to format text and, throughtiktoken, to count tokens when splitting long transcripts. - What I found:
⚠️ Just changing the model name would have crashed the app.tiktoken.encoding_for_model("gpt-6-luna")raisesKeyError, in both the pinned version (0.7.0) and the latest (0.14.0), so upgrading doesn't help. - Fix: Try the new model first, then fall back to
o200k_base, the encoding the old model used. Chunk sizes stay exactly the same. The model name now lives in one setting. Tested end to end against a mock OpenAI server: 7 chunks, every request used the new model, and no words were lost. - Links: My fork · Pull request (open)
- Problem: The
llm_prompthelper defaulted togpt-4o-mini. - What I found: The shared client in
projectdiscovery/utilsalways senttemperature: 0, which may not work with the newest reasoning models. The maintainer confirmed it was a real problem. - Outcome: I opened an issue first. The maintainer fixed the temperature problem in utils v0.11.15 and opened a PR with my commit plus the utils bump. My commit is now part of ProjectDiscovery's dsl.
- Links: Issue #381 (closed as completed) · Pull request #382 (merged)
Anthropic retires Claude Sonnet 4.5 on the Claude API on November 30, 2026 (model deprecations). The replacement, claude-sonnet-5-5, rejects temperature, top_p and top_k, and its replies can start with a thinking block.
- OpenClacky (Ruby): moved the default Claude model to
claude-sonnet-5-5and checked that no sampling settings are sent: #737 (merged) - ai-scanner (Ruby, 0DIN by Mozilla): moved the Anthropic preset to
claude-sonnet-5-5and fixed response parsing for replies that start with a thinking block: #221 (merged) - kit (Go, Mark III Labs): moved all built-in defaults to
claude-sonnet-5-5, with tests that fail if a default model is marked deprecated: #273 (open)
- WeClaw (Go): HTTP agents fell back to
gpt-4o-mini. A PR with a test: #88 (open) - Nasiko (Go, Rust, Python): example agents and the LLM router default to
gpt-4o-mini, andgpt-6-lunaneedsreasoning_effort: "none"for tool calls on Chat Completions. An issue to agree the scope: #369 (open) - openrisk (Go, ProjectDiscovery): hard-codes
gpt-4o. An issue with a ready branch: #118 (open)
I turned the problems from these migrations into luna-check, a small CLI and GitHub Action that finds code that will break at the shutdown: retiring model IDs, tiktoken.encoding_for_model() calls, and tool calls sent without reasoning_effort.
📝 Article: GPT-4o shuts down on Jan 14, 2027: what breaks when you switch to gpt-6-luna
- Confirm the replacement on OpenAI's official deprecations page.
- Find every place that uses the old model: code, tokenizers, config, docs.
- Make the smallest safe change, and only upgrade packages when needed.
- Test it, and say clearly what was and wasn't tested.
- Write a plain-English MIGRATION.md for the team.
Tools: Python · Go · JavaScript · OpenAI API · LangChain · tiktoken · Claude Code