fix(examples): replace retired claude-sonnet-4-20250514 with claude-sonnet-4-6 - #167
Merged
Merged
Conversation
…onnet-4-6 Anthropic retired claude-sonnet-4-20250514 (404 from the API), breaking every example pinned to it. claude-sonnet-4-6 is the like-for-like replacement: current previous-generation Sonnet that still accepts the legacy extended-thinking shape these examples use via thinkingBudgetTokens, so they work on all server versions.
ling-senpeng13
marked this pull request as ready for review
August 17, 2026 23:17
kowser-orkes
approved these changes
Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Anthropic retired
claude-sonnet-4-20250514— the API now returns 404model not found, breaking every example pinned to it (58, 59, 60, 60a, plus docstring mentions in 56/adk-35/README).claude-sonnet-4-6is the like-for-like replacement: it still accepts the legacy extended-thinking request shape (thinking.type: enabled+budget_tokens) that these examples use viathinkingBudgetTokens, so they run unchanged on all current server versions. (Claude Sonnet 5 was considered but rejects that legacy shape, which would have required an SDK serialization change as a prerequisite.)Verified: example 59 (extended thinking + code execution) completes end-to-end on
claude-sonnet-4-6against conductor-oss.