Patch Changes
-
e361d39: feat(anthropic): add Claude Sonnet 5.5 support
- add the
claude-sonnet-5-5model ID to@ai-sdk/anthropicand@ai-sdk/google-vertex,anthropic.claude-sonnet-5-5andus.anthropic.claude-sonnet-5-5to@ai-sdk/amazon-bedrock, andanthropic/claude-sonnet-5.5to@ai-sdk/gateway - add the
between_toolsthinking type (thinking: { type: 'between_tools' }), the lowest thinking setting onclaude-sonnet-5-5;xhighandmaxeffort are lowered tohighwith a warning because the API rejects them withbetween_tools claude-sonnet-5-5rejects disabled thinking:thinking: { type: 'disabled' }is replaced withbetween_toolsthinking (with a warning),reasoning: 'none'maps tobetween_toolsthinking, and budget-based thinking is converted to adaptive thinkingclaude-sonnet-5-5rejects forced tool use:requiredand named tool choices fall back toauto, andstructuredOutputMode: 'jsonTool'falls back to native structured outputs, each with a warning
- add the