To migrate a chatbot off a retiring LLM, list every model ID it calls, read the replacement's migration guide, re-run your regression tests on the new model, compare cost, and keep a rollback ready. Anthropic set November 30, 2026 as the retirement date for Claude Sonnet 4.5. SwiftBiz moved its own website chatbot to Claude Sonnet 5.5 on November 9, 2026.
That migration is commit fbbd9c2 in the SwiftBiz site's repository: one file, 19 lines added and 19 removed, and two breaking API changes along the way. Below: what deprecation means at Anthropic, OpenAI and Google, what our change actually touched, the 7-step checklist you can hand to whoever runs your bot, and when the full process is overkill.
What happens when an AI model is deprecated?
A deprecated model still works but has a shutdown date; a retired model stops answering. Anthropic's model deprecations page puts it in five words: "Requests to retired models fail." Your chatbot does not fall back to a newer model on its own. It returns errors to every visitor until someone changes the code.
The three large providers publish this differently:
| Provider | Minimum notice | Where it is published | At shutdown |
|---|---|---|---|
| Anthropic | "At least 60 days" for publicly released models | Model deprecations page, plus email to active users | Requests fail |
| OpenAI | "At least 6 months" for generally available models; at least 3 months for specialized variants; preview models can go in "2 weeks" | Deprecations page, plus email | The model "no longer accepts requests through the standard API" |
| Google (Gemini API) | No fixed number; listed dates are the "earliest possible dates" | Deprecations page and release notes | The endpoint is no longer available, though some endpoints route to a newer model |
Sources checked on November 14, 2026. One catch: Anthropic's dates apply to its own platforms. Amazon Bedrock and Google-managed Claude on Google Cloud set their own retirement schedules.
Which models had shutdown dates when we checked?
These shutdown dates were listed on the providers' own pages on November 14, 2026, with the Opus 4.5 row added after Anthropic's November 23 notice. Dates move, so confirm on the provider's page:
| Model ID | Shutdown | Recommended replacement |
|---|---|---|
claude-sonnet-4-5-20250929 and the undated alias claude-sonnet-4-5 | November 30, 2026 | claude-sonnet-5-5 |
gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, o3-pro | December 11, 2026 | See OpenAI's page |
gpt-4o-2024-08-06, gpt-4o-2024-11-20 | January 14, 2027 | gpt-6-luna |
claude-opus-4-5-20251101 | January 22, 2027 | claude-opus-5-5 |
Two more Anthropic models are worth watching. Anthropic deprecated claude-opus-4-5-20251101 on November 23, 2026, with retirement on January 22, 2027 and claude-opus-5-5 as the replacement. It still lists claude-haiku-4-5-20251001 as active with a tentative retirement "not sooner than October 15, 2026", a date that has passed, so a 60-day notice could arrive at any time.
What did SwiftBiz's own migration change?
The change sits in lib/chat/claude.ts, the file that connects the swiftbiz.ai chat widget to Claude. The commit message states the reason in one line: "Sonnet 4.5 (claude-sonnet-4-5-20250929) retires on 2026-11-30." Here is what the diff shows:
| SwiftBiz chatbot setting | Before (Sonnet 4.5) | After (Sonnet 5.5) | Why |
|---|---|---|---|
| Model ID | claude-sonnet-4-5-20250929 | claude-sonnet-5-5 | The replacement Anthropic recommends |
| Effort | not set | low | Sonnet 5.5 thinks by default; low effort keeps website replies fast |
max_tokens | 1024 | 2048 | Thinking tokens count toward the cap |
| Lead extraction | Forced tool call (tool_choice naming an extract_data tool) | Structured outputs (output_config.format, same JSON schema) | Sonnet 5.5 rejects forced tool_choice with a 400 error |
Two of those rows were breaking changes, and both are in Anthropic's Sonnet 5.5 migration guide. First, Sonnet 5.5 runs adaptive thinking on requests that never asked for it, and the guide says max_tokens "covers thinking plus text, and thinking tokens are billed as output tokens." Keep the old 1,024 cap and long replies can get cut off. Second, the chatbot pulled a visitor's name and email out of the chat by forcing a tool call, and Sonnet 5.5 refuses that with the error "tool_choice: type "tool" and "any" are not supported for this model."
The guide's suggested fix for forced tools is tool_choice: auto with a strict tool. Our job was pure data extraction, not an action, so the commit moved it to structured outputs instead:
// After: JSON comes back as a schema-constrained text block
output_config: {
effort: EFFORT,
format: { type: 'json_schema', schema: { type: 'object', ...schema } },
},The new code also returns nothing unless the response stopped normally (stop_reason of end_turn), then parses the text block as JSON.
What the commit does not show is a test log, a latency number or a cost comparison, so we do not quote any here. That gap is the point of steps 4 and 5 below: the code change fit in one file, and the evidence that it works has to live somewhere outside the diff.
An inventory of the same repository on November 14, 2026 also found a second model ID. The chatbot's backup provider, lib/chat/openai.ts, names gpt-4o. OpenAI lists the GPT-4o snapshots for shutdown on January 14, 2027, and its page does not say what happens to the bare alias. That is the next entry on our own calendar.
What do you need before you start?
- Access to the code or tool settings where the model is chosen.
- Your provider console login, for the usage export.
- A regression test set: real customer questions with written pass criteria.
- A staging copy of the bot.
- The retirement date, with two weeks of slack before it.
How do you migrate a chatbot to a new model, step by step?
Step 1: Find every model ID your bot calls
Search the code and environment variables for model names, then check the provider's own usage records. Anthropic's audit is three clicks: open the Usage page in Claude Console, click Export, and read the CSV, which breaks usage down by API key and model. The export catches what a code search misses: an old script, a staging key, a no-code automation on your account.
Note whether each ID is a pinned snapshot (claude-sonnet-4-5-20250929) or an alias (gpt-4o). Pinned IDs retire on a known date. Aliases can move or disappear, and the provider page may not say which.
Step 2: Read the replacement's migration notes
Read the guide for your exact starting model, not the launch blog post. For Sonnet 4.5 to Sonnet 5.5, Anthropic's checklist includes these changes that can return a 400 error or change behaviour:
- Forced
tool_choiceof typetooloranyis rejected. - Assistant prefill (writing the start of the model's reply) is rejected.
temperature,top_pandtop_kmust go. Anthropic removed them in API version2026-10-21.- Thinking runs by default, so code that reads
content[0].textcan break when a thinking block comes first. output_formatmoves tooutput_config.format, and effort should be set explicitly.
Mark each item "applies" or "does not apply" to your code. Ours hit two.
Step 3: Make the change on a branch
Keep the model ID in one constant or environment variable, so the swap and the rollback are each one line. Change the parameters the guide requires in the same commit. Ours left a comment above the model constant noting the retirement date and why max_tokens doubled, so the next person does not "fix" it back.
Step 4: Re-run your regression test set, old and new side by side
Run the same test set against the old model and the new one, and compare answer by answer. Our 9-gate pre-launch chatbot test is built for this: gate 9 is the re-run after any change to the knowledge base, the system prompt or the model underneath the bot. Run each hard-gate case three times on the new model.
Pay most attention to the places a model swap shifts quietly: structured data (lead fields, booking slots), refusals on out-of-scope questions, reply length and tone. An April 2026 framework for end-of-life migrations by Casey and colleagues on arXiv evaluates the same three things, "correctness, refusal behavior, and stylistic adherence", and calibrates automated scores against human judgments. For a small business, that means a person reads a sample of the replies the automated checks passed.
Step 5: Check latency and cost
Time a dozen typical replies on both models, then recompute cost from your real token counts, not the price table alone. Anthropic's pricing page lists Sonnet 4.5 at $3 per million input tokens and $15 per million output, and Sonnet 5.5 at $2 and $10 (USD). That looks like a one-third cut. But the migration guide says the same text produces "about 30 percent more tokens" on Sonnet 5.5, and thinking tokens bill as output.
Illustrative calculation in USD: text that is 1 million input tokens on Sonnet 4.5 costs $3.00; at about 1.3 million tokens on Sonnet 5.5 it costs about $2.60. A reply that is 100,000 output tokens costs $1.50 on Sonnet 4.5 and about $1.30 on Sonnet 5.5, before any thinking tokens. In this illustrative example the per-token cut of 33% shrinks to about 13%, and thinking can erase it. Measure a week of real traffic, then compare. Our AI chatbot cost breakdown shows how token cost fits into the full monthly bill.
Step 6: Ship with a rollback, and know when it expires
Deploy, watch errors and a sample of live chats for 48 hours, and keep the old model ID ready to restore. Know the limit: a rollback to the retiring model only works until its retirement date. After that, your fallback has to be another active model. SwiftBiz's chatbot selects its provider through one setting (CHAT_PROVIDER, claude or openai), which is why the backup model ID matters as much as the main one. For fallback patterns beyond chat, see when the AI API fails.
Step 7: Put the next date on the calendar
Write the new model's tentative retirement date where your team will see it. Anthropic lists claude-sonnet-5-5 as "not sooner than September 28, 2027". Make sure deprecation emails reach a monitored inbox, and check the provider's deprecations page monthly.
Want an outside team to run this migration, or test your bot before and after? Book an AI Readiness Audit ($3,500 CAD, credited toward your retainer), or see how we build and maintain AI chat agents.
How do you know the migration worked?
It worked when four things are true: the old model ID appears nowhere in code, settings or the usage export; every hard-gate test passes three runs out of three on the new model; structured outputs (leads, bookings) land in your CRM or calendar with every field; and a week of real cost sits within the budget you set in step 5. Check the usage export again a week after launch. If the old ID still shows traffic, something you missed is still calling it.
When is a full migration not worth it?
- Your vendor runs the model. If you use a hosted chatbot product and never chose a model ID, the vendor migrates for you. Ask them for the date and their test results, and re-run your own top 20 questions afterwards.
- The endpoint routes itself. Google lists some Gemini endpoints that route requests to a newer model instead of shutting down. You still need step 4, because answers change, but not steps 1 to 3.
- The bot is menu-driven. A bot that shows fixed answers and buttons has no model to retire.
- You are replacing the bot anyway. If a rebuild ships before the retirement date, put the effort there.
Our verdict: a customer-facing bot on a pinned model ID needs all seven steps, because nobody notices the shutdown until a visitor gets an error.
What do owners ask about model retirements?
What happens to my chatbot when the AI model is retired?
When does Claude Sonnet 4.5 retire, and what replaces it?
Is swapping the model ID enough?
Will the newer model be cheaper?
What does SwiftBiz charge to migrate or test a chatbot?
Which path should you take?
- If your bot calls
claude-sonnet-4-5-20250929or the undatedclaude-sonnet-4-5directly, start step 1 today. The retirement date is November 30, 2026. Once it has passed, those calls fail, so change the model ID first and run steps 4 and 5 straight after. - If you use a hosted chatbot product, email the vendor for their migration date and test results, then re-run your top questions.
- If you have no regression test set, we recommend you start with that: build one with the 9-gate checklist; without it you cannot tell whether the new model is better or worse.
- If you are choosing a provider for the next build, choose with deprecation notice in mind and weigh it alongside price: OpenAI publishes at least 6 months for generally available models, Anthropic at least 60 days. Our Claude vs ChatGPT comparison covers the rest of that decision.