@ai-sdk/anthropic
4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed
457 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 3.x
3.0.43
12 Feb 2026Only updates a dependency:@ai-sdk/provider-utils 4.0.15
3.0.42
11 Feb 2026Normalize provider specific model options type names and ensure they are exported
3.0.41
10 Feb 2026anthropic: Add the new compaction feature
3.0.40
10 Feb 2026provider/anthropic: Include actual raw usage data for
response.usage.rawwhen streaming
3.0.39
8 Feb 2026anthropic: Add support for Opus 4.6 fast mode
3.0.38
6 Feb 2026Only updates dependencies:@ai-sdk/provider 3.0.8@ai-sdk/provider-utils 4.0.14
3.0.37
5 Feb 2026anthropic: Add support for Opus 4.6
3.0.36
3 Feb 2026anthropic: Support custom tool-reference content for deferred tool loading
3.0.34 – 3.0.352 releases that only update dependencies@ai-sdk/provider 3.0.7@ai-sdk/provider-utils 4.0.13Show each
3.0.33
30 Jan 2026Fix streaming context_management field location - was incorrectly expected inside delta object but API returns it at message_delta root level
3.0.32
30 Jan 2026anthropic: Add missing param in tool schema
3.0.30 – 3.0.312 releases with no change for you1 dependency update, 1 maintenance@ai-sdk/provider-utils 4.0.11@ai-sdk/provider 3.0.6Show each
- 3.0.3129 Jan 2026@ai-sdk/provider-utils 4.0.11@ai-sdk/provider 3.0.6
- 3.0.3029 Jan 2026docs, tests or tooling
3.0.29
28 Jan 2026Fix cache usage reporting for anthropic stream
3.0.28
27 Jan 2026provider/anthropic: Populate outputTokens.text field in usage
3.0.27
27 Jan 2026anthropic: Allow custom/dynamic key for providerOptions
3.0.26
27 Jan 2026Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
3.0.25
27 Jan 2026provider/anthropic: Add computer_20251124 tool for claude opus 4.5
3.0.23 – 3.0.242 releases that only update dependencies@ai-sdk/provider-utils 4.0.10@ai-sdk/provider 3.0.5Show each
3.0.22
22 Jan 2026Add
authTokenoption to supportAuthorization: Bearerauthentication as an alternative tox-api-keyheader authentication.
3.0.21
22 Jan 2026anthropic: Deferred results for tool search tool
3.0.18
21 Jan 2026anthropic: Handle web_search_result_location citations and add webFetch documents to citationDocuments
3.0.17
20 Jan 2026Fix JSON parsing crash when handling Anthropic web_fetch tool error results
3.0.16
20 Jan 2026Not sending structured output beta header for json response tool
3.0.12 – 3.0.154 releases that only update dependencies@ai-sdk/provider 3.0.4@ai-sdk/provider-utils 4.0.8Show each
3.0.11
12 Jan 2026anthropic: Add application/json type regex matching
3.0.10
12 Jan 2026Fix
input_tokenscompatibility
3.0.9
7 Jan 2026anthropic: Assign type urls in file parts correctly
3.0.8
7 Jan 2026anthropic: Enable structured output support for claude-haiku-4-5
This fixes an issue where the
strict: trueproperty was not included in the request body when using tools with Claude Haiku 4.5, becausesupportsStructuredOutputwas incorrectly set tofalsefor this model.Claude Haiku 4.5 supports structured outputs, so the
strictproperty should be forwarded to the Anthropic API when specified on tools.
3.0.7
6 Jan 2026Only updates dependencies:@ai-sdk/provider 3.0.2@ai-sdk/provider-utils 4.0.4
3.0.6
5 Jan 2026anthropic: Implement temperature/topP mutual exclusivity
Resolves the Anthropic API breaking change where sampling parameters must use only
temperatureORtop_p, not both. When both parameters are provided:See Anthropic migration guide: platform.claude.com/docs/en/about-claude/models…
3.0.5
5 Jan 2026Only updates a dependency:@ai-sdk/provider-utils 4.0.3
3.0.4
5 Jan 2026Use provider tool name in Tool Search Tool results
3.0.3
5 Jan 2026anthropic: Support deferred results for web search/fetch tool
3.0.2
30 Dec 2025Trigger release to update
@latest
Patch Changes
Trigger release to update
@latest
3.0.1
23 Dec 2025Only updates a dependency:@ai-sdk/provider-utils 4.0.1
3.0.0
22 Dec 2025- Breaking
Ai SDK 6 beta
provider: Add specificationVersion to ProviderV3
provider: Shared spec v3
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
- 2.x
2.0.115
10 Nov 2026Only updates dependencies:@ai-sdk/provider-utils 3.0.46@ai-sdk/google 2.0.110@ai-sdk/openai-compatible 1.0.63
2.0.114
9 Nov 2026anthropic: Add Claude Fable 5.2 support
2.0.113
7 Nov 2026Keep computer toolset actions tied to the returned member name and reject disabled or unavailable members before emitting tool calls. Apply member configuration to local input validation and reject malformed streamed member input.
Patch Changes
Keep computer toolset actions tied to the returned member name and reject disabled or unavailable members before emitting tool calls. Apply member configuration to local input validation and reject malformed streamed member input.
2.0.112
3 Nov 2026Enable native structured output for supported Claude 5 models on Bedrock. In automatic mode, Bedrock and Anthropic now fall back for schemas that native structured output cannot represent: recursive references, open objects, or more than ten optional properties. Anthropic uses the JSON response tool; Bedrock Converse uses the JSON tool or JSON instructions for models that reject forced tool use. The JSON-tool fallback excludes disabled and unselected application tools. Explicit
outputFormatselection remains unchanged.anthropic: Parse valid JSON string tool input and safely serialize BigInt and cycles in tool results
Preserve final JSON text when a model answers without calling the JSON response tool, including open-schema fallbacks on Claude models that reject forced tools. Keep tool preambles out of structured output in generation and streaming.
When the model answers in text, streaming buffers that text until the message finishes to avoid exposing tool preambles as partial structured output.
Patch Changes
Enable native structured output for supported Claude 5 models on Bedrock. In automatic mode, Bedrock and Anthropic now fall back for schemas that native structured output cannot represent: recursive references, open objects, or more than ten optional properties. Anthropic uses the JSON response tool; Bedrock Converse uses the JSON tool or JSON instructions for models that reject forced tool use. The JSON-tool fallback excludes disabled and unselected application tools. Explicit
outputFormatselection remains unchanged.anthropic: Parse valid JSON string tool input and safely serialize BigInt and cycles in tool results
Preserve final JSON text when a model answers without calling the JSON response tool, including open-schema fallbacks on Claude models that reject forced tools. Keep tool preambles out of structured output in generation and streaming.
When the model answers in text, streaming buffers that text until the message finishes to avoid exposing tool preambles as partial structured output.
2.0.111
30 Oct 2026Only updates a dependency:@ai-sdk/provider-utils 3.0.43
2.0.110
21 Oct 2026Defer validation schema construction until first use to reduce provider import time.
Defer construction of Anthropic provider option schemas until they are first used to reduce package import time.
Patch Changes
Defer validation schema construction until first use to reduce provider import time.
Defer construction of Anthropic provider option schemas until they are first used to reduce package import time.
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.