Update dependency @ai-sdk/anthropic to v4#69
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
686c0e2 to
c15a52c
Compare
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.
This PR contains the following updates:
^1.2.6→^4.0.0Release Notes
vercel/ai (@ai-sdk/anthropic)
v4.0.1Compare Source
Patch Changes
6a436e3]v4.0.0Compare Source
Major Changes
832f86f: fix(anthropic): remove cacheCreationInputTokens from providerMetadata34bd95d: feat(ai): add support for uploading provider skills using the provider references abstractionef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only ("type": "module"). Consumers usingrequire()must switch to ESMimportsyntax.c29a26f: feat(provider): add support for provider references and uploading files as supported per provider3887c70: feat(provider): add new top-level reasoning parameter to spec and support it ingenerateTextandstreamText8359612: Start v7 pre-release04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbolsFor all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
Patch Changes
e02f041: feat(provider/anthropic): add support forclaude-opus-4-8648705c: fix(provider/anthropic): fix remaining errors with Anthropiccode_executiontool dynamic calls from latestweb_fetchorweb_search38fc777: Add AI Gateway hint to provider READMEsee798eb: chore(provider-utils): renameExperimental_SandboxtoExperimental_SandboxSessione748b35: chore: update v3 specs to v419c5ee2: fix(anthropic): reorder assistant content b/w client and provider tool use0ee8aec: feat (provider/anthropic): support passing metadata.user_idc012d57: feat(anthropic): sanitize the unsupported JSON schema validation properties8018480: feat(anthropic): add the new advisor toole5c4f40: Remove staleeffort-2025-11-24beta header — the extended thinking effort parameter is GA and no longer requires the beta flag. Vertex AI's strict validator was actively rejecting requests with this header.f57c702: fix(anthropic): allow both temperature and topP for non-Anthropic models using the Anthropic-compatible APIThe temperature/topP mutual exclusivity check now only applies to known Anthropic models (model IDs starting with
claude-). Non-Anthropic models using the Anthropic-compatible API (e.g. Minimax) can now send both parameters as required by their APIs.2610e84: feat(provider/anthropic): automatically use sandbox in bash toold848405: feat: add optionalabortSignalparameters to sandbox command execution87d1723: chore(anthropic): remove unnecessary messages affix from Anthropic symbols and files9f0e36c: trigger release for all packages after provenance setupacdbf84: Handle errors from anthropic websearch toolad0b376: fix(provider/anthropic): stop addingfine-grained-tool-streaming-2025-05-14beta forclaude-opus-4-758a2ad7: fix: more precise default message for tool execution denial21d1ee3: fix(anthropic): skip passing beta header for tool search tools1fe058b: fix(anthropic): preserve the error code returned by model7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.09bd27b: feat (provider/anthropic): add support for inference_geo provider option0c4c275: trigger initial canary release6fd51c0: fix(provider): preserve error type prefix in getErrorMessagee311194: feat(ai): allow passing provider instance touploadFileanduploadSkillas shorthand6c93e36: feat(provider-utils): addspawnCommandmethod toExperimental_Sandboxto allow for detached command execution9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type258c093: chore: ensure consistent import handling and avoid import duplicates or cycles5463d0d: feat(provider): align tool result output content file part types with top-level message file part typesb8396f0: trigger initial beta release6b4d325: feat(provider/anthropic): add support forclaude-fable-5and thefallbacksAPI parameterf05a40d: fix(vertex): throw warning when strict: true for vertexAnthropica6617c5: feat(provider-utils): addreadFileandwriteFileplus convenience wrappers toExperimental_Sandboxabstractiona464505: fix(anthropic): propagate toModelOutput providerOption to anthropic tool results90e2d8a: chore: fix unused vars not being flagged by our lint toolingb3976a2: Add workflow serialization support to all provider models.@ai-sdk/provider-utils: NewserializeModel()helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.All providers:
headersis now optional in provider config types. This is non-breaking — existing code that passesheaderscontinues to work. Custom provider implementations that construct model configs manually can now omitheaders, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.All provider model classes now include
WORKFLOW_SERIALIZEandWORKFLOW_DESERIALIZEstatic methods, enabling them to cross workflow step boundaries without serialization errors.0d8f107: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancementsff5eba1: feat: rollimage-*tool output types into their equivalentfile-*typesv3.0.91Compare Source
Patch Changes
95bc6fd: feat (provider/anthropic): addclaude-sonnet-5model idfa850e6]v3.0.90Compare Source
Patch Changes
28ff5a7: fix(anthropic): correctly map delta type when code execution tools are usedv3.0.89Compare Source
Patch Changes
b30e43a]v3.0.88Compare Source
Patch Changes
f19334d]v3.0.87Compare Source
Patch Changes
1b40ac7: Publish all packages under the@ai-v6dist tag.1b40ac7]v3.0.86Compare Source
Patch Changes
6086c60: fix(anthropic): reorder assistant content b/w client and provider tool usev3.0.85Compare Source
Patch Changes
779f5cd]v3.0.84Patch Changes
bfa5864]f42aa79]v3.0.82Compare Source
Patch Changes
2a91a17: feat(provider/anthropic): add support forclaude-fable-5and thefallbacksAPI parameterv3.0.81Compare Source
Patch Changes
4084fcd: feat(provider/anthropic): add support forclaude-opus-4-8v3.0.80Compare Source
Patch Changes
263d3e6: fix(provider/anthropic): fix remaining errors with Anthropiccode_executiontool dynamic calls from latestweb_fetchorweb_searchv3.0.79Compare Source
Patch Changes
d61a788: Handle errors from anthropic websearch toolv3.0.78Compare Source
Patch Changes
6e28d25: fix(anthropic): propagate toModelOutput providerOption to anthropic tool resultsv3.0.77Compare Source
Patch Changes
d53314d: feat(anthropic): add the new advisor toolv3.0.76Compare Source
Patch Changes
f591416]v3.0.75Compare Source
Patch Changes
3f06680: Remove staleeffort-2025-11-24beta header — the extended thinking effort parameter is GA and no longer requires the beta flag. Vertex AI's strict validator was actively rejecting requests with this header.v3.0.74Compare Source
Patch Changes
7beadf0]v3.0.73Compare Source
Patch Changes
f8c9ae4: feat(anthropic): sanitize the unsupported JSON schema validation propertiesa727da4: chore: ensure consistent import handling and avoid import duplicates or cyclesa727da4]v3.0.72Compare Source
Patch Changes
a7f3c72: trigger release for all packages after provenance setupa7f3c72]v3.0.71Compare Source
Patch Changes
95b4fe0: fix(provider/anthropic): stop addingfine-grained-tool-streaming-2025-05-14beta forclaude-opus-4-7v3.0.70Compare Source
Patch Changes
2ff8d57: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancementsv3.0.69Compare Source
Patch Changes
61f1a61: feat (provider/anthropic): add support for inference_geo provider optionv3.0.68Compare Source
Patch Changes
d42076d: Add AI Gateway hint to provider READMEsv3.0.67Compare Source
Patch Changes
6247886]v3.0.66Compare Source
Patch Changes
0469aed]v3.0.65Compare Source
Patch Changes
94aed06: fix(anthropic): allow both temperature and topP for non-Anthropic models using the Anthropic-compatible APIThe temperature/topP mutual exclusivity check now only applies to known Anthropic models (model IDs starting with
claude-). Non-Anthropic models using the Anthropic-compatible API (e.g. Minimax) can now send both parameters as required by their APIs.v3.0.64Compare Source
Patch Changes
05b8ca2: feat (provider/anthropic): support passing metadata.user_idv3.0.63Compare Source
Patch Changes
055cd68: fix: publish v6 to latest npm dist tag055cd68]v3.0.62Compare Source
Patch Changes
41c6a56: fix(anthropic): skip passing beta header for tool search toolsv3.0.61Patch Changes
2381567: fix(vertex): throw warning when strict: true for vertexAnthropicv3.0.59Compare Source
Patch Changes
64ac0fd]v3.0.58Compare Source
Patch Changes
3fb4e70: feat(anthropic): support eagerInputStreaming option for fine-grained tool streamingad4cfc2]v3.0.57Compare Source
Patch Changes
824b295]v3.0.56Compare Source
Patch Changes
e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream providerse49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream providerv3.0.55Compare Source
Patch Changes
7531e72: fix(provider/anthropic): handle encrypted_code_execution_result for multi-turn with web_fetch/web_search2026020v3.0.54Compare Source
Patch Changes
56c67d5: feat(provider/anthropic): add support for Anthropic web toolsweb_fetch_20260209andweb_search_20260209v3.0.53Compare Source
Patch Changes
89caf28: fix(openai-compat): decode base64 string datav3.0.52Compare Source
Patch Changes
08336f1]v3.0.51Compare Source
Patch Changes
64a8fae: chore: remove obsolete model IDs for Anthropic, Google, OpenAI, xAIv3.0.50Compare Source
Patch Changes
58bc42d]v3.0.49Compare Source
Patch Changes
d98d9ba: Migrated deprecatedoutput_formatparameter tooutput_config.formatfor structured outputs + Enabled native structured output support for Bedrock Anthropic models viaoutput_config.format.v3.0.48Compare Source
Patch Changes
2164cdf: feat(anthropic): add the new code_execution toolv3.0.47Compare Source
Patch Changes
17978c6: PasscacheControlprovider option as top-levelcache_controlin Anthropic API request body to support automatic caching.v3.0.46Compare Source
Patch Changes
b094c07: fix compaction_delta streaming schema to allow null contentv3.0.45Compare Source
Patch Changes
2a1c664: feat(provider/anthropic): add support for new Claude Sonnet 4.6 modelv3.0.44Compare Source
Patch Changes
23ac4a3: fix(provider/anthropic): minor follow up to support no-op speed standardv3.0.43Compare Source
Patch Changes
4024a3a]v3.0.42Compare Source
Patch Changes
99fbed8: feat: normalize provider specific model options type names and ensure they are exportedv3.0.41Compare Source
Patch Changes
c60b393: feat(anthropic): add the new compaction featurev3.0.40Compare Source
Patch Changes
8c2b1e1: fix(provider/anthropic): include actual raw usage data forresponse.usage.rawwhen streamingv3.0.39Compare Source
Patch Changes
0a0d29c: feat(anthropic): add support for Opus 4.6 fast modev3.0.38Compare Source
Patch Changes
7168375]v3.0.37Compare Source
Patch Changes
e288302: feat(anthropic): add support for Opus 4.6v3.0.36Compare Source
Patch Changes
1652320: feat(anthropic): support custom tool-reference content for deferred tool loadingv3.0.35Compare Source
Patch Changes
53f6731]v3.0.34Compare Source
Patch Changes
96936e5]v3.0.33Compare Source
Patch Changes
445cbe3: fix streaming context_management field location - was incorrectly expected inside delta object but API returns it at message_delta root levelv3.0.32Compare Source
Patch Changes
c33343b: fix(anthropic): add missing param in tool schemav3.0.31Compare Source
Patch Changes
2810850]v3.0.30Compare Source
Patch Changes
1524271: chore: add skill information to README filesv3.0.29Compare Source
Patch Changes
b9d105f: Fix cache usage reporting for anthropic streamv3.0.28Compare Source
Patch Changes
2445da4: fix(provider/anthropic): populate outputTokens.text field in usagev3.0.27Compare Source
Patch Changes
572ea12: feat(anthropic): allow custom/dynamic key for providerOptionsv3.0.26Compare Source
Patch Changes
2c70b90: chore: update provider docsv3.0.25Compare Source
Patch Changes
0bb9bcd: feat(provider/anthropic): add computer_20251124 tool for claude opus 4.5v3.0.24Compare Source
Patch Changes
462ad00]v3.0.23Compare Source
Patch Changes
4de5a1d: chore: excluded tests from src folder in npm package4de5a1d]v3.0.22Compare Source
Patch Changes
8ccf04b: AddauthTokenoption to supportAuthorization: Bearerauthentication as an alternative tox-api-keyheader authentication.v3.0.21Compare Source
Patch Changes
662d359: feat(anthropic): deferred results for tool search toolv3.0.20Compare Source
Patch Changes
2b8369d: chore: add docs to package distv3.0.19Compare Source
Patch Changes
8dc54db: chore: add src folders to package bundlev3.0.18Compare Source
Patch Changes
c10bd49: fix(anthropic): handle web_search_result_location citations and add webFetch documents to citationDocumentsv3.0.17Compare Source
Patch Changes
4729bed: Fix JSON parsing crash when handling Anthropic web_fetch tool error resultsv3.0.16Compare Source
Patch Changes
d36fa72: Not sending structured output beta header for json response toolv3.0.15Compare Source
Patch Changes
5c090e7]v3.0.14Compare Source
Patch Changes
46f46e4]v3.0.13Compare Source
Patch Changes
1b11dcb]v3.0.12Compare Source
Patch Changes
34d1c8a]v3.0.11Compare Source
Patch Changes
8c1c6e3: fix(anthropic): add application/json type regex matchingv3.0.10Compare Source
Patch Changes
02d9b68: fixinput_tokenscompatibilityv3.0.9Compare Source
Patch Changes
de2399b: fix(anthropic): assign type urls in file parts correctlyv3.0.8Compare Source
Patch Changes
bee4f82: fix(anthropic): enable structured output support for claude-haiku-4-5This 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.v3.0.7Compare Source
Patch Changes
d937c8f]v3.0.6Compare Source
Patch Changes
2231e84: fix(anthropic): implement temperature/topP mutual exclusivityResolves the Anthropic API breaking change where sampling parameters must use only
temperatureORtop_p, not both. When both parameters are provided:See Anthropic migration guide: https://platform.claude.com/docs/en/about-claude/models/migrating-to-claude-4
v3.0.5Compare Source
Patch Changes
3fb4e70: feat(anthropic): support eagerInputStreaming option for fine-grained tool streamingad4cfc2]v3.0.4Compare Source
Patch Changes
d98d9ba: Migrated deprecatedoutput_formatparameter tooutput_config.formatfor structured outputs + Enabled native structured output support for Bedrock Anthropic models viaoutput_config.format.v3.0.3Compare Source
Patch Changes
0a0d29c: feat(anthropic): add support for Opus 4.6 fast modev3.0.2Compare Source
Patch Changes
b9d105f: Fix cache usage reporting for anthropic streamv3.0.1Compare Source
Patch Changes
8dc54db: chore: add src folders to package bundlev3.0.0Compare Source
Major Changes
dee8b05: ai SDK 6 betaMinor Changes
78928cb: release: start 5.1 betaPatch Changes
0c3b58b: fix(provider): add specificationVersion to ProviderV30adc679: feat(provider): shared spec v350b70d6: feat(anthropic): add programmatic tool callingb8ea36e: feat(provider/anthropic): Anthropic-native structured outputsed537e1: Add support for pdf file in tool result in anthropic2109385: 'fix(anthropic): Opus 4.5maxOutputTokensbump32000->64000'7c4328e: Adds url-based pdf and image support for anthropic tool results8d9e8ad: chore(provider): remove generics from EmbeddingModelV3Before
After
f33a018: chore: add model ID for Haiku 4.5b2dbfbf: add context_management for anthropicdce03c4: feat: tool input examples2625a04: feat(openai); update spec for mcp approval11e4abe: feat(provider/anthropic): web search tool updatesf13958c: chore(antropic): allow custom names for provider-defined toolsafb00e3: feat(provider/anthropic): add text_editor_20250728 tool supportAdd 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.
95f65c2: chore: use import * from zod/v4954c356: feat(openai): allow custom names for provider-defined tools9e35785: fix(anthropic): send {} as tool input when streaming tool calls without arguments544d4e8: chore(specification): rename v3 provider defined tool to provider toola5f77a6: fix(anthropic): remove outdated tool name docsca07285: feat(anthropic): add prompt caching validationa5a8db4: chore: add model ID for Sonnet 4.51742445: Support for custom provider name in google and anthropic providerse8109d3: feat: tool execution approval87db851: fix(vertex/anthropic): passing beta header only for structured outputsf6603b7: fix(provider/anthropic): correct raw usage informationed329cb: feat:Provider-V33bd2689: feat: extended token usage1cad0ab: feat: add provider version to user-agent header2049c5b: Fix handling of error in web fetch tool in anthropic4c5a6be: feat(provider/anthropic): default and limit maxTokens based on model9e1e758: fix(anthropic): use default thinking budget when unspecified589a4ee: fix(anthropic): simplify pulling first chunk8dac895: feat:LanguageModelV36f845b4: Add support for 2025-08-25 code execution tool9354297: feat(provider/anthropic): add support for Agent Skills03849b0: throw 500 error when the first stream chunk is an error0ae783e: feat(anthropic): add the new tool search tools457318b: chore(provider,ai): switch to SharedV3Warning and unified warningseb56fc6: fix(anthropic): pull first chunk without async IIFEfa35e95: feat(provider/anthropic): add web fetch tool80894b3: add returnfile_idproperty for anthropic code-execution-20250825 to download output files.366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases81d4308: feat(provider/anthropic): mcp connector support6fc35cb: Retain user-supplied betas.f4db7b5: feat(provider/anthropic): expose container from response in provider metadata6c38080: fix(anthropic): support pdf responses in web_fetch_tool_result schema validation4616b86: chore: update zod peer depenedency versiondedf206: feat(provider/anthropic): expose stop_sequence in provider metadata983e394: chore(provider/anthropic): add missing provider options jsdoc0e38a79: support ANTHROPIC_BASE_URLcf4e2a9: Add support for tool calling with structured outputf4e4a95: feat(provider/anthropic): enable fine grained tool streaming by default21f378c: fix(provider/anthropic): do not limit maxTokens when model id is unknownc5440c5: chore(provider/anthropic): update anthropic model ids1d15673: fix(provider/anthropic): clamp temperature to valid 0-1 range with warnings9cff587: chore(provider/anthropic): lazy schema loadingd129d89: chore(anthropic): remove unnecessary doc3794514: feat: flexible tool output content supporte1e2821: fix(provider/anthropic): support null title in web fetch toolcbf52cd: feat: expose raw finish reason10c1322: fix: moved dependency@ai-sdk/test-serverto devDependencies[
d08308b](https://redirect.github.com/vercConfiguration
📅 Schedule: (in timezone Asia/Jerusalem)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.