Skip to content

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

Merged
felixarntz merged 3 commits intorelease-v5.0from
backport-pr-12645-to-release-v5.0
Feb 17, 2026
Merged

Backport: feat(provider/anthropic): add support for new Claude Sonnet 4.6 model#12648
felixarntz merged 3 commits intorelease-v5.0from
backport-pr-12645-to-release-v5.0

Conversation

@vercel-ai-sdk
Copy link
Contributor

@vercel-ai-sdk vercel-ai-sdk bot commented Feb 17, 2026

This is an automated backport of #12645 to the release-v5.0 branch. FYI @felixarntz
This backport has conflicts that need to be resolved manually.

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 2a1c6642b (feat(provider/anthropic): add support for new Claude Sonnet 4.6 model (#12645)).  Version 2a1c6642b (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 2a1c6642b... 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"

@@ -0,0 +1,117 @@
import {
anthropic,
type AnthropicLanguageModelOptions,
Copy link
Contributor

@vercel vercel bot Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example file imports non-existent type AnthropicLanguageModelOptions from @ai-sdk/anthropic, causing a TypeScript compilation error.

Fix on Vercel

}
```

### Programmatic Tool Calling
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think programmatic tool calling is available in v5.. might have to remove this docs section

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good point, hadn't considered that yet. I can see code_execution_20250825 in https://github.com/vercel/ai/blob/release-v5.0/packages/anthropic/src/anthropic-prepare-tools.ts#L73 - wouldn't that mean it is in v5, or does it require something else?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed in 9012fb8

@felixarntz felixarntz enabled auto-merge (squash) February 17, 2026 20:27
@felixarntz felixarntz merged commit fe42fd3 into release-v5.0 Feb 17, 2026
19 checks passed
@felixarntz felixarntz deleted the backport-pr-12645-to-release-v5.0 branch February 17, 2026 20:33
gr2m pushed a commit that referenced this pull request Feb 17, 2026
Follow up to #12648 where this file was accidentally backported in the
wrong place. no re-release needed because it's just an example though
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/core ai/gateway ai/provider backport documentation Improvements or additions to documentation feature New feature or request minor marker for PRs with minor version bump provider/anthropic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants