Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 2 min read

Claude Sonnet 4.5 retires Nov 30, 2026: what breaks when you switch to Sonnet 5.5

Anthropic retires Claude Sonnet 4.5 (claude-sonnet-4-5 and claude-sonnet-4-5-20250929) on the Claude API on November 30, 2026. The recommended replacement is claude-sonnet-5-5 (see Anthropic's model deprecations page).

Anthropic retires Claude Sonnet 4.5 (claude-sonnet-4-5 and claude-sonnet-4-5-20250929) on the Claude API on November 30, 2026. The recommended replacement is claude-sonnet-5-5 (see Anthropic's model deprecations page).

This week I sent migration PRs to three open-source projects that still defaulted to Sonnet 4.5. Two are already merged (openclacky #737 and 0DIN ai-scanner #221). In each one, changing the model name was the easy part. Here's what else needed fixing.

1. temperature, top_p and top_k now return 400

Sonnet 5.5 rejects non-default temperature, top_p and top_k. API version 2026-10-21 removes them for every model.

# Before: works on Sonnet 4.5
client.messages.create(
    model="claude-sonnet-4-5",
    max_tokens=1024,
    temperature=0.3,
    messages=messages,
)

# After: drop the sampling params
client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=1024,
    messages=messages,
)

Watch out for hidden sampling params. In one CLI, the code already dropped temperature for models that don't support it, but kept top_p and top_k. Per-model config settings were also applied after that check, so they could bring the values back. Search your config files too, not just your request code.

2. The first content block may not be text

Sonnet 5.5 thinks adaptively by default, so a response can start with a thinking block. Code that reads the first block breaks quietly:

# Fragile: returns nothing useful when the first block is thinking
text = resp.content[0].text

# Safe: read blocks by type
text = "".join(b.text for b in resp.content if b.type == "text")

The same applies to JSONPath configs. One project read replies with $.content[0].text. With a thinking block first, that matched nothing, and the tool recorded empty output without any error. Changing it to $.content[*].text picks up the text block wherever it is.

3. Check your thinking and tool settings

Anthropic's migration guide for Sonnet 5.5 also lists request settings that return a 400 error, including thinking: {type: "disabled"} and forcing a specific tool with tool_choice. If your code sends either one to Claude, test it before switching.

4. Dates differ by platform

The Nov 30 date is for the Claude API. The same model has different retirement dates on other platforms, for example Amazon Bedrock. Check the lifecycle page for the platform you actually call.

Check your code

I added these checks to luna-check, a free, open-source CLI that now covers model retirements from OpenAI, Anthropic, Google, Azure and Bedrock, using their official deprecation pages:

pip install git+https://github.com/prasadrandika/[email protected]
luna-check .

You can also paste code into the checker on my website. It runs fully in your browser.

Limits: it can't see model names that only exist in your deployment environment, and it isn't a full code review.

If you need help migrating before November 30, feel free to reach out: prasadrandika.github.io.

I used AI assistance (Claude Code) for the migrations and this tool, and reviewed the results myself.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.