@ai-sdk/anthropic
4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed
3.0.143 is the newest release of 3.x.
In short
1 breaking33 new20 fixed14 internal
- Breaking
Ai SDK 6 beta
Release note
Major Changes
- Breaking
Ai SDK 6 beta
Patch Changes
provider: Add specificationVersion to ProviderV3
provider: Shared spec v3
anthropic: Add programmatic tool calling
provider/anthropic: Anthropic-native structured outputs
Add support for pdf file in tool result in anthropic
'fix(anthropic): Opus 4.5
maxOutputTokensbump32000->64000'Adds url-based pdf and image support for anthropic tool results
Add context_management for anthropic
Tool input examples
feat(openai); update spec for mcp approval
provider/anthropic: Web search tool updates
provider/anthropic: Add text_editor_20250728 tool support
Add text_editor_20250728 tool for Claude 4 models (Sonnet 4, Opus 4, Opus 4.1) with optional max_characters parameter and no undo_edit command support.
openai: Allow custom names for provider-defined tools
anthropic: Send {} as tool input when streaming tool calls without arguments
anthropic: Remove outdated tool name docs
anthropic: Add prompt caching validation
Support for custom provider name in google and anthropic providers
Tool execution approval
vertex/anthropic: Passing beta header only for structured outputs
provider/anthropic: Correct raw usage information
Provider-V3Extended token usage
Add provider version to user-agent header
Fix handling of error in web fetch tool in anthropic
provider/anthropic: Default and limit maxTokens based on model
anthropic: Use default thinking budget when unspecified
anthropic: Simplify pulling first chunk
LanguageModelV3Add support for 2025-08-25 code execution tool
provider/anthropic: Add support for Agent Skills
Throw 500 error when the first stream chunk is an error
anthropic: Add the new tool search tools
anthropic: Pull first chunk without async IIFE
provider/anthropic: Add web fetch tool
Add return
file_idproperty for anthropic code-execution-20250825 to download output files.provider/anthropic: Mcp connector support
Retain user-supplied betas.
provider/anthropic: Expose container from response in provider metadata
anthropic: Support pdf responses in web_fetch_tool_result schema validation
provider/anthropic: Expose stop_sequence in provider metadata
Support ANTHROPIC_BASE_URL
Add support for tool calling with structured output
provider/anthropic: Enable fine grained tool streaming by default
provider/anthropic: Do not limit maxTokens when model id is unknown
provider/anthropic: Clamp temperature to valid 0-1 range with warnings
Flexible tool output content support
provider/anthropic: Support null title in web fetch tool
Expose raw finish reason
Moved dependency
@ai-sdk/test-serverto devDependenciesprovider/anthropic: Memory tool
anthropic: Make title field nullable in web_fetch and web_search tool output schemas
tool-specific strict mode
Opus 4.5 and
effortprovider option
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.