feat(provider/anthropic): add support for new Claude Sonnet 4.6 model#12645
Merged
felixarntz merged 7 commits intomainfrom Feb 17, 2026
Merged
feat(provider/anthropic): add support for new Claude Sonnet 4.6 model#12645felixarntz merged 7 commits intomainfrom
felixarntz merged 7 commits intomainfrom
Conversation
nicoalbanese
approved these changes
Feb 17, 2026
dancer
approved these changes
Feb 17, 2026
Contributor
|
|
felixarntz
added a commit
that referenced
this pull request
Feb 17, 2026
… 4.6 model (#12648) This is an automated backport of #12645 to the release-v5.0 branch. Conflicts fixed by @felixarntz ### `git cherry-pick` output ``` Auto-merging content/docs/02-foundations/02-providers-and-models.mdx Auto-merging content/providers/01-ai-sdk-providers/05-anthropic.mdx CONFLICT (content): Merge conflict in content/providers/01-ai-sdk-providers/05-anthropic.mdx Auto-merging content/providers/01-ai-sdk-providers/index.mdx Auto-merging examples/ai-core/src/generate-text/anthropic-reasoning.ts Auto-merging examples/ai-core/src/stream-text/anthropic-context-management-clear-tool-uses.ts Auto-merging examples/ai-core/src/stream-text/anthropic-reasoning.ts CONFLICT (modify/delete): examples/ai-functions/src/generate-text/anthropic-context-management.ts deleted in HEAD and modified in 2a1c664 (feat(provider/anthropic): add support for new Claude Sonnet 4.6 model (#12645)). Version 2a1c664 (feat(provider/anthropic): add support for new Claude Sonnet 4.6 model (#12645)) of examples/ai-functions/src/generate-text/anthropic-context-management.ts left in tree. Auto-merging packages/anthropic/src/anthropic-messages-language-model.ts Auto-merging packages/anthropic/src/anthropic-messages-options.ts Auto-merging packages/gateway/src/gateway-language-model-settings.ts error: could not apply 2a1c664... feat(provider/anthropic): add support for new Claude Sonnet 4.6 model (#12645) hint: After resolving the conflicts, mark them with hint: "git add/rm <pathspec>", then run hint: "git cherry-pick --continue". hint: You can instead skip this commit with "git cherry-pick --skip". hint: To abort and get back to the state before "git cherry-pick", hint: run "git cherry-pick --abort". hint: Disable this message with "git config set advice.mergeConflict false" ``` --------- Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
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.
Background
Anthropic released Claude Sonnet 4.6: https://www.anthropic.com/news/claude-sonnet-4-6
This PR adds the new model string across the SDK so it's recognized with correct capabilities.
Summary
Adds
claude-sonnet-4-6as a recognized model ID in theanthropic,amazon-bedrock, andgoogle-vertexprovider packages. The model is registered with 128k max output tokens and structured output support (same tier asclaude-opus-4-6). It supports both adaptive and enabled thinking modes.Documentation model tables and capability lists are updated to include the new model. A few relevant examples (
anthropic-reasoning,anthropic-context-management) are updated to use the new model string.Manual Verification
N/A — model string addition, verified via type check (
pnpm type-check:full).Checklist
pnpm changesetin the project root)Future Work
N/A
Related Issues
N/A