Skip to content

feat(provider/anthropic): add support for new Claude Sonnet 4.6 model#12645

Merged
felixarntz merged 7 commits intomainfrom
add/sonnet-4-6
Feb 17, 2026
Merged

feat(provider/anthropic): add support for new Claude Sonnet 4.6 model#12645
felixarntz merged 7 commits intomainfrom
add/sonnet-4-6

Conversation

@felixarntz
Copy link
Copy Markdown
Collaborator

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-6 as a recognized model ID in the anthropic, amazon-bedrock, and google-vertex provider packages. The model is registered with 128k max output tokens and structured output support (same tier as claude-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

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Future Work

N/A

Related Issues

N/A

@felixarntz felixarntz added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Feb 17, 2026
@tigent tigent bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label feature New feature or request minor marker for PRs with minor version bump provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider provider/anthropic Issues related to the @ai-sdk/anthropic provider provider/google-vertex Issues related to the @ai-sdk/google-vertex provider labels Feb 17, 2026
@felixarntz felixarntz enabled auto-merge (squash) February 17, 2026 18:07
@gr2m gr2m disabled auto-merge February 17, 2026 18:47
@felixarntz felixarntz merged commit 2a1c664 into main Feb 17, 2026
34 of 36 checks passed
@felixarntz felixarntz deleted the add/sonnet-4-6 branch February 17, 2026 19:02
vercel-ai-sdk bot pushed a commit that referenced this pull request Feb 17, 2026
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Feb 17, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk bot commented Feb 17, 2026

⚠️ Backport to release-v5.0 created but has conflicts: #12648

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>
@gr2m gr2m removed the ai/gateway label Mar 6, 2026
@gr2m gr2m added the provider/gateway Issues related to the @ai-sdk/gateway provider label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label feature New feature or request minor marker for PRs with minor version bump provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider provider/anthropic Issues related to the @ai-sdk/anthropic provider provider/gateway Issues related to the @ai-sdk/gateway provider provider/google-vertex Issues related to the @ai-sdk/google-vertex provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants