From the studio
Last orders, please.
And the AI models your code is about to lose.
A run of older AI models switches off between now and January. Here's what's going, where the old names hide, and the free scanner we built to find them.
Most of what I write here is about games, so this one's a change of scene. It's about closing time, more or less.
AI providers retire their older models on a timetable. On the day a model switches off, any code still asking for it by name stops getting answers. If that code sits in a queue or a nightly job, the failure can look a lot like silence. Nobody notices until the pile behind it gets big enough to see.
The next few months are busy. So here's what's going, how to check your own code, and the small tool we built at Burnt & Toast to do the checking for you.
What's switching off
| Date | What's going | Provider's suggested replacement |
|---|---|---|
| 20 Oct 2026 (now retired) | gemini-2.5-pro, gemini-2.5-flash and gemini-2.5-flash-lite on Vertex AI only. They aren't deprecated on the Gemini API. | see Google's Vertex AI model versions page |
| 23 Oct 2026 | A batch of older OpenAI models: o1, o3-mini, o4-mini, gpt-3.5-turbo, gpt-4, gpt-4-turbo, gpt-4.1-nano and gpt-4o-2024-05-13, plus gpt-image-1 and some fine-tunes. OpenAI's deprecations page has the full list. | gpt-4.1-nano → gpt-5.6-luna; o1, o3-mini, gpt-4, gpt-4-turbo and gpt-4o-2024-05-13 → gpt-5.6-sol; gpt-3.5-turbo and o4-mini → gpt-5.6-terra |
| 30 Nov 2026 | claude-sonnet-4-5-20250929 on Anthropic's own platforms. Bedrock and Google Cloud set their own dates. | claude-sonnet-5-5 |
| 6 Jan 2027 | The last day existing OpenAI customers can start new fine-tuning jobs. | n/a |
| 14 Jan 2027 | The remaining GPT-4o and GPT-4.1 snapshots: gpt-4o-2024-08-06, gpt-4o-2024-11-20, gpt-4o-mini-2024-07-18, gpt-4.1-2025-04-14 and gpt-4.1-mini-2025-04-14, and the fine-tunes built on them. | gpt-6-luna |
One thing to be clear about. 23 October is the older OpenAI snapshots. Most of GPT-4o and GPT-4.1 carries on until 14 January, so there's no need to panic about those this week. Anything on the 23 October list is a different story.
Checking by hand
If you'd like to do it yourself, a search like this is a decent first pass:
rg -n --hidden -g '!node_modules' -g '!.git' \
-e 'gpt-4' -e 'gpt-3\.5' -e 'o1' -e 'o3-mini' -e 'o4-mini' \
-e 'gemini-2\.5' -e 'claude-sonnet-4-5' -e 'ft:gpt' .
Fair warning: searching for o1 will also find every orgId: "o1" you've ever written. Sorting the real hits from the noise is most of the job.
When we checked our own code, the model names weren't only in the code. They were in environment templates, seed data, test fixtures and documentation. So search all of those. Then look for the places where the model is picked at runtime (OPENAI_MODEL, MODEL_NAME and so on) and check what's actually set in each environment. The repo might say one thing while production quietly says another.
Five things that catch people out
- Undated names count too. Plain
gpt-4o, with no date, currently resolves togpt-4o-2024-08-06, which is on the 14 January list. OpenAI can point it somewhere else, but I wouldn't count on it. - An empty shutdown date doesn't mean you're safe. OpenAI suggests watching the
shutdown_datefield on its models endpoint, but that field can be empty. Check the deprecations page as well. - Changing the name isn't enough. When we tested it,
gpt-6-lunaturned downmax_tokenswith an HTTP 400 error. It wantsmax_completion_tokens(ormax_output_tokenson the Responses API). Chat Completions calls that use function tools also needreasoning_effort: "none". A tidy find-and-replace on the model name gets you a tidy set of errors. - The settings and the model switch need to ship together. The old model may refuse the new settings, and the new model refuses the old ones, so a "settings first, model later" rollout can break in either direction. (Our fix aims for this but doesn't guarantee it on every call, so check the diff.)
- Fine-tunes go with their base model. If you rely on one, decide what replaces it before 6 January, when new fine-tuning jobs stop.
Then, while the old model still works, run 10 to 20 of your real prompts through both the old and the new model and compare the answers. JSON field names and category labels can drift without a single error to warn you.
The scanner we built
I should say up front: we built this, and it's ours.
Last Orders is a free, open-source scanner that does the search above properly. It lists every retiring model name in a repo, with its shutdown date and the provider's suggested replacement. It checks the call settings too. A gpt-4o-mini call that passes max_tokens, for instance, comes up high risk, with a note that gpt-6-luna rejects it and that it needs renaming to max_completion_tokens. It lists fine-tunes separately, and it flags the environment variables that choose a model, so you know which live settings to check.
pipx install lastorders && lastorders scan .
It reads Python, JavaScript and TypeScript, R, PHP, Rust, C#, Go and EJS, plus .env files, YAML, JSON, TOML and docs. It runs on your own machine, with no account and no telemetry. The only network call is one plain request for the latest list of retiring models. It sends none of your code or results, and --offline skips even that.
For Gemini 2.5, it marks those models high risk only when your code uses Vertex AI. On the Gemini API they show up as an information note, because they aren't retiring there.
There's also a GitHub Action, so the check runs on every pull request and picks up new retirement dates as they're announced:
- uses: burntandtoast/lastorders@v0.4.11
One more limit. The free scan can make the patch look bigger than it is. Some IDs it shows as plain replacements are ones the paid fix keeps (for example, where renaming would create a duplicate entry) and lists for review instead. Generated files are skipped. The free lastorders swap . preview shows the real per-file count.
The source is on GitHub at burntandtoast/lastorders.
If you'd rather not do the edits
The free scan tells you which calls will break. If you'd rather not make the edits by hand, there's a paid fix for £179 per repo, including VAT, paid once. It covers the 23 October batch in Python, JavaScript and TypeScript. What you get is a reviewable patch that switches the models it safely can and updates the call settings the new model needs, plus a must-review list of anything it couldn't safely change.
It aims to make the settings changes and the model switch together, but doesn't guarantee it on every call, so review the patch before you merge it. On some repos the must-review list is the whole result. (o1-pro is flagged rather than swapped, because its replacement needs reasoning.mode: pro.) One licence covers one GitHub repo, monorepos included. The scan stays free either way.
Everything's at lastorders.burntandtoast.com. If it misses something in your code, or flags something it shouldn't, I'd genuinely like to hear about it. That's the feedback that makes it better.
Right. Back to trains.
Last Orders, a free scanner for retiring AI model names.
Finds code pinned to retiring OpenAI, Gemini and Claude models, with each shutdown date and the suggested replacement. Runs on your own machine.
About this post: Burnt & Toast isn't affiliated with OpenAI, Anthropic or Google. Dates are from each provider's own deprecation pages, checked on 15 and 16 October 2026. Providers do change them, so check their pages before you act.