build: update dependency @ai-sdk/anthropic to v4#288
Open
angular-robot wants to merge 1 commit into
Open
Conversation
See associated pull request for more information.
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:
3.0.64→4.0.1Release Notes
vercel/ai (@ai-sdk/anthropic)
v4.0.1Patch Changes
6a436e3]v4.0.0Major 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.90Patch Changes
28ff5a7: fix(anthropic): correctly map delta type when code execution tools are usedv3.0.89Patch Changes
b30e43a]v3.0.88Patch Changes
f19334d]v3.0.87Patch Changes
1b40ac7: Publish all packages under the@ai-v6dist tag.1b40ac7]v3.0.86Patch Changes
6086c60: fix(anthropic): reorder assistant content b/w client and provider tool usev3.0.85Patch Changes
779f5cd]v3.0.84Patch Changes
bfa5864]f42aa79]v3.0.82Patch Changes
2a91a17: feat(provider/anthropic): add support forclaude-fable-5and thefallbacksAPI parameterv3.0.81Patch Changes
4084fcd: feat(provider/anthropic): add support forclaude-opus-4-8v3.0.80Patch Changes
263d3e6: fix(provider/anthropic): fix remaining errors with Anthropiccode_executiontool dynamic calls from latestweb_fetchorweb_searchv3.0.79Patch Changes
d61a788: Handle errors from anthropic websearch toolv3.0.78Patch Changes
6e28d25: fix(anthropic): propagate toModelOutput providerOption to anthropic tool resultsv3.0.77Patch Changes
d53314d: feat(anthropic): add the new advisor toolv3.0.76Patch Changes
f591416]v3.0.75Patch 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.74Patch Changes
7beadf0]v3.0.73Patch Changes
f8c9ae4: feat(anthropic): sanitize the unsupported JSON schema validation propertiesa727da4: chore: ensure consistent import handling and avoid import duplicates or cyclesa727da4]v3.0.72Patch Changes
a7f3c72: trigger release for all packages after provenance setupa7f3c72]v3.0.71Patch Changes
95b4fe0: fix(provider/anthropic): stop addingfine-grained-tool-streaming-2025-05-14beta forclaude-opus-4-7v3.0.70Patch Changes
2ff8d57: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancementsv3.0.69Patch Changes
61f1a61: feat (provider/anthropic): add support for inference_geo provider optionv3.0.68Patch Changes
d42076d: Add AI Gateway hint to provider READMEsv3.0.67Patch Changes
6247886]v3.0.66Patch Changes
0469aed]v3.0.65Patch 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.