migration-guide changedmodels/sonnet-5-5/migration-guide
Nearest release: v2.1.333, published an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+4added
Lines−2removed
From line
227
where the diff opens
First seen
29 Sep 2026
this site's first read of the page
Recorded edits31to this page, all time
The whole hunk
from line 227, old and new numbered
/
from line 227
227227
228228* **Read content blocks by `type`.** A response can start with `thinking` blocks, so code that reads `content[0].text` breaks.
229229* **Pass `thinking` blocks back unchanged** in tool-use loops, including empty ones. See [Preserving thinking blocks](https://platform.claude.com/docs/en/build-with-claude/thinking#preserving-thinking-blocks).
230* **Revisit `max_tokens`.** It covers thinking plus text, and thinking tokens are billed as output tokens. See [Cost control](https://platform.claude.com/docs/en/build-with-claude/thinking-steering-and-cost#cost-control).
230* **Revisit `max_tokens`.** It covers thinking plus text, so a response can stop with [`stop_reason: "max_tokens"`](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting#stopped-at-max-tokens) before any text. Thinking tokens are billed as output tokens. See [Cost control](https://platform.claude.com/docs/en/build-with-claude/thinking-steering-and-cost#cost-control).
231231
232232Thinking text is omitted by default. `thinking` blocks arrive with an empty `thinking` field and a `signature`. To get readable summaries, set `display: "summarized"`, the default on Claude Sonnet 4.6 and earlier models and on Claude Haiku 4.5. See [Controlling thinking display](https://platform.claude.com/docs/en/build-with-claude/thinking#controlling-thinking-display).
233233
from line 478
478478
479479### Claude Sonnet 4.6 or earlier
480480
481* Expect [thinking on requests with no `thinking` field](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-on-by-default), and revisit `max_tokens`.
481* [Revisit `max_tokens`](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-in-responses), because [thinking runs by default](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-on-by-default) and counts toward it.
482482* Replace [thinking budgets](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#sonnet-46-breaking-changes) with an effort level.
483483* Remove `temperature`, `top_p`, and `top_k`.
484484* If you [show thinking text](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-in-responses), set `display: "summarized"`.
from line 1215
12151215* **Unwanted refusals:** clear instructions in the user message are usually enough.
12161216* **Continuations:** move them to the user message, for example “Your previous response was interrupted and ended with `[previous_response]`. Continue from where you left off.”
12171217* **Context reminders:** put them in the user turn.
1218
1219**Thinking runs by default on Claude Sonnet 5.5.** It counts toward `max_tokens`, so revisit your limit. See [Handle thinking in responses](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-in-responses) and [Turn off up-front thinking](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#turn-off-up-front-thinking).
12181220
12191221**Tool input escaping.** Escaping in tool call arguments can differ. Parse `input` with a standard JSON parser.
12201222
No line in this hunk matches that.