Skip to content
/ POST · CHAT AGENTS

LLM Model Deprecation Migration: A 7-Step Chatbot Checklist

Calls to a retired AI model fail; Claude Sonnet 4.5's retirement date is Nov 30, 2026. A 7-step checklist from SwiftBiz's own chatbot migration.

Author · HarryNovember 14, 20269 min read

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:

ProviderMinimum noticeWhere it is publishedAt shutdown
Anthropic"At least 60 days" for publicly released modelsModel deprecations page, plus email to active usersRequests 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 emailThe 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 notesThe 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 IDShutdownRecommended replacement
claude-sonnet-4-5-20250929 and the undated alias claude-sonnet-4-5November 30, 2026claude-sonnet-5-5
gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, o3-proDecember 11, 2026See OpenAI's page
gpt-4o-2024-08-06, gpt-4o-2024-11-20January 14, 2027gpt-6-luna
claude-opus-4-5-20251101January 22, 2027claude-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 settingBefore (Sonnet 4.5)After (Sonnet 5.5)Why
Model IDclaude-sonnet-4-5-20250929claude-sonnet-5-5The replacement Anthropic recommends
Effortnot setlowSonnet 5.5 thinks by default; low effort keeps website replies fast
max_tokens10242048Thinking tokens count toward the cap
Lead extractionForced 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_choice of type tool or any is rejected.
  • Assistant prefill (writing the start of the model's reply) is rejected.
  • temperature, top_p and top_k must go. Anthropic removed them in API version 2026-10-21.
  • Thinking runs by default, so code that reads content[0].text can break when a thinking block comes first.
  • output_format moves to output_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?
It stops working. Anthropic's deprecations page says requests to retired models fail, and OpenAI says a shut-down model no longer accepts requests through the standard API. The provider does not switch your bot to a newer model automatically, so visitors see errors or a broken chat window until someone changes the model ID and tests the replacement.
When does Claude Sonnet 4.5 retire, and what replaces it?
Anthropic's retirement date for claude-sonnet-4-5-20250929 on the Claude API is November 30, 2026, and it recommends claude-sonnet-5-5 as the replacement. It was deprecated on September 30, 2026. If you use Claude through Amazon Bedrock or Google-managed Claude on Google Cloud, check that platform's own schedule, because partner platforms set their own retirement dates.
Is swapping the model ID enough?
Rarely. Moving from Sonnet 4.5 to Sonnet 5.5, SwiftBiz's own chatbot needed two more changes: a higher max_tokens cap because thinking tokens count toward it, and a new way to extract lead data because Sonnet 5.5 rejects forced tool calls. Read the migration guide for your starting model and re-run your regression tests before you ship.
Will the newer model be cheaper?
Not always by as much as the price table suggests. Sonnet 5.5 lists a per-token price a third lower than Sonnet 4.5. But Anthropic's migration guide says the same text produces about 30 percent more tokens on Sonnet 5.5, and thinking tokens bill as output. Compare a week of real usage on both models before you assume any savings.
What does SwiftBiz charge to migrate or test a chatbot?
SwiftBiz prices are in Canadian dollars. The AI Readiness Audit is $3,500 CAD, credited toward your retainer, and covers which bots and workflows need attention first. A red-teaming / safety audit of an existing bot is $5k per engagement. A new chatbot build starts with the AI Chatbot Starter at $8,000 one-time.

Which path should you take?

  • If your bot calls claude-sonnet-4-5-20250929 or the undated claude-sonnet-4-5 directly, 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.

Want this running for your business?

Start with a free strategy call. We'll map your workflow, flag the highest-ROI automation, and tell you honestly whether we're the right fit.