Skip to content

Update dependency @ai-sdk/anthropic to v4#69

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ai-sdk-anthropic-4.x
Open

Update dependency @ai-sdk/anthropic to v4#69
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ai-sdk-anthropic-4.x

Conversation

@renovate

@renovate renovate Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@ai-sdk/anthropic (source) ^1.2.6^4.0.0 age confidence

Release Notes

vercel/ai (@​ai-sdk/anthropic)

v4.0.1

Compare Source

Patch Changes

v4.0.0

Compare Source

Major Changes
  • 832f86f: fix(anthropic): remove cacheCreationInputTokens from providerMetadata

  • 34bd95d: feat(ai): add support for uploading provider skills using the provider references abstraction

  • ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only ("type": "module"). Consumers using require() must switch to ESM import syntax.

  • c29a26f: feat(provider): add support for provider references and uploading files as supported per provider

  • 3887c70: feat(provider): add new top-level reasoning parameter to spec and support it in generateText and streamText

  • 8359612: Start v7 pre-release

  • 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols

    For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.

Patch Changes
  • e02f041: feat(provider/anthropic): add support for claude-opus-4-8

  • 648705c: fix(provider/anthropic): fix remaining errors with Anthropic code_execution tool dynamic calls from latest web_fetch or web_search

  • 38fc777: Add AI Gateway hint to provider READMEs

  • ee798eb: chore(provider-utils): rename Experimental_Sandbox to Experimental_SandboxSession

  • e748b35: chore: update v3 specs to v4

  • 19c5ee2: fix(anthropic): reorder assistant content b/w client and provider tool use

  • 0ee8aec: feat (provider/anthropic): support passing metadata.user_id

  • c012d57: feat(anthropic): sanitize the unsupported JSON schema validation properties

  • 8018480: feat(anthropic): add the new advisor tool

  • e5c4f40: Remove stale effort-2025-11-24 beta 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 API

    The 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 tool

  • d848405: feat: add optional abortSignal parameters to sandbox command execution

  • 87d1723: chore(anthropic): remove unnecessary messages affix from Anthropic symbols and files

  • 9f0e36c: trigger release for all packages after provenance setup

  • acdbf84: Handle errors from anthropic websearch tool

  • ad0b376: fix(provider/anthropic): stop adding fine-grained-tool-streaming-2025-05-14 beta for claude-opus-4-7

  • 58a2ad7: fix: more precise default message for tool execution denial

  • 21d1ee3: fix(anthropic): skip passing beta header for tool search tools

  • 1fe058b: fix(anthropic): preserve the error code returned by model

  • 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.

  • 09bd27b: feat (provider/anthropic): add support for inference_geo provider option

  • 0c4c275: trigger initial canary release

  • 6fd51c0: fix(provider): preserve error type prefix in getErrorMessage

  • e311194: feat(ai): allow passing provider instance to uploadFile and uploadSkill as shorthand

  • 6c93e36: feat(provider-utils): add spawnCommand method to Experimental_Sandbox to allow for detached command execution

  • 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type

  • 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles

  • 5463d0d: feat(provider): align tool result output content file part types with top-level message file part types

  • b8396f0: trigger initial beta release

  • 6b4d325: feat(provider/anthropic): add support for claude-fable-5 and the fallbacks API parameter

  • f05a40d: fix(vertex): throw warning when strict: true for vertexAnthropic

  • a6617c5: feat(provider-utils): add readFile and writeFile plus convenience wrappers to Experimental_Sandbox abstraction

  • a464505: fix(anthropic): propagate toModelOutput providerOption to anthropic tool results

  • 90e2d8a: chore: fix unused vars not being flagged by our lint tooling

  • b3976a2: Add workflow serialization support to all provider models.

    @ai-sdk/provider-utils: New serializeModel() 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: headers is now optional in provider config types. This is non-breaking — existing code that passes headers continues to work. Custom provider implementations that construct model configs manually can now omit headers, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.

    All provider model classes now include WORKFLOW_SERIALIZE and WORKFLOW_DESERIALIZE static methods, enabling them to cross workflow step boundaries without serialization errors.

  • 0d8f107: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancements

  • ff5eba1: feat: roll image-* tool output types into their equivalent file-* types

v3.0.91

Compare Source

Patch Changes

v3.0.90

Compare Source

Patch Changes
  • 28ff5a7: fix(anthropic): correctly map delta type when code execution tools are used

v3.0.89

Compare Source

Patch Changes

v3.0.88

Compare Source

Patch Changes

v3.0.87

Compare Source

Patch Changes

v3.0.86

Compare Source

Patch Changes
  • 6086c60: fix(anthropic): reorder assistant content b/w client and provider tool use

v3.0.85

Compare Source

Patch Changes

v3.0.84

Patch Changes

v3.0.82

Compare Source

Patch Changes
  • 2a91a17: feat(provider/anthropic): add support for claude-fable-5 and the fallbacks API parameter

v3.0.81

Compare Source

Patch Changes
  • 4084fcd: feat(provider/anthropic): add support for claude-opus-4-8

v3.0.80

Compare Source

Patch Changes
  • 263d3e6: fix(provider/anthropic): fix remaining errors with Anthropic code_execution tool dynamic calls from latest web_fetch or web_search

v3.0.79

Compare Source

Patch Changes
  • d61a788: Handle errors from anthropic websearch tool

v3.0.78

Compare Source

Patch Changes
  • 6e28d25: fix(anthropic): propagate toModelOutput providerOption to anthropic tool results

v3.0.77

Compare Source

Patch Changes
  • d53314d: feat(anthropic): add the new advisor tool

v3.0.76

Compare Source

Patch Changes

v3.0.75

Compare Source

Patch Changes
  • 3f06680: Remove stale effort-2025-11-24 beta 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.74

Compare Source

Patch Changes

v3.0.73

Compare Source

Patch Changes

v3.0.72

Compare Source

Patch Changes

v3.0.71

Compare Source

Patch Changes
  • 95b4fe0: fix(provider/anthropic): stop adding fine-grained-tool-streaming-2025-05-14 beta for claude-opus-4-7

v3.0.70

Compare Source

Patch Changes
  • 2ff8d57: feat(provider/anthropic): add support for Opus 4.7 and relevant API enhancements

v3.0.69

Compare Source

Patch Changes
  • 61f1a61: feat (provider/anthropic): add support for inference_geo provider option

v3.0.68

Compare Source

Patch Changes
  • d42076d: Add AI Gateway hint to provider READMEs

v3.0.67

Compare Source

Patch Changes

v3.0.66

Compare Source

Patch Changes

v3.0.65

Compare Source

Patch Changes
  • 94aed06: fix(anthropic): allow both temperature and topP for non-Anthropic models using the Anthropic-compatible API

    The 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.64

Compare Source

Patch Changes
  • 05b8ca2: feat (provider/anthropic): support passing metadata.user_id

v3.0.63

Compare Source

Patch Changes

v3.0.62

Compare Source

Patch Changes
  • 41c6a56: fix(anthropic): skip passing beta header for tool search tools

v3.0.61

Patch Changes
  • 2381567: fix(vertex): throw warning when strict: true for vertexAnthropic

v3.0.59

Compare Source

Patch Changes

v3.0.58

Compare Source

Patch Changes

v3.0.57

Compare Source

Patch Changes

v3.0.56

Compare Source

Patch Changes
  • e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream providers
  • e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream provider

v3.0.55

Compare Source

Patch Changes
  • 7531e72: fix(provider/anthropic): handle encrypted_code_execution_result for multi-turn with web_fetch/web_search 2026020

v3.0.54

Compare Source

Patch Changes
  • 56c67d5: feat(provider/anthropic): add support for Anthropic web tools web_fetch_20260209 and web_search_20260209

v3.0.53

Compare Source

Patch Changes
  • 89caf28: fix(openai-compat): decode base64 string data

v3.0.52

Compare Source

Patch Changes

v3.0.51

Compare Source

Patch Changes
  • 64a8fae: chore: remove obsolete model IDs for Anthropic, Google, OpenAI, xAI

v3.0.50

Compare Source

Patch Changes

v3.0.49

Compare Source

Patch Changes
  • d98d9ba: Migrated deprecated output_format parameter to output_config.format for structured outputs + Enabled native structured output support for Bedrock Anthropic models via output_config.format.

v3.0.48

Compare Source

Patch Changes
  • 2164cdf: feat(anthropic): add the new code_execution tool

v3.0.47

Compare Source

Patch Changes
  • 17978c6: Pass cacheControl provider option as top-level cache_control in Anthropic API request body to support automatic caching.

v3.0.46

Compare Source

Patch Changes
  • b094c07: fix compaction_delta streaming schema to allow null content

v3.0.45

Compare Source

Patch Changes
  • 2a1c664: feat(provider/anthropic): add support for new Claude Sonnet 4.6 model

v3.0.44

Compare Source

Patch Changes
  • 23ac4a3: fix(provider/anthropic): minor follow up to support no-op speed standard

v3.0.43

Compare Source

Patch Changes

v3.0.42

Compare Source

Patch Changes
  • 99fbed8: feat: normalize provider specific model options type names and ensure they are exported

v3.0.41

Compare Source

Patch Changes
  • c60b393: feat(anthropic): add the new compaction feature

v3.0.40

Compare Source

Patch Changes
  • 8c2b1e1: fix(provider/anthropic): include actual raw usage data for response.usage.raw when streaming

v3.0.39

Compare Source

Patch Changes
  • 0a0d29c: feat(anthropic): add support for Opus 4.6 fast mode

v3.0.38

Compare Source

Patch Changes

v3.0.37

Compare Source

Patch Changes
  • e288302: feat(anthropic): add support for Opus 4.6

v3.0.36

Compare Source

Patch Changes
  • 1652320: feat(anthropic): support custom tool-reference content for deferred tool loading

v3.0.35

Compare Source

Patch Changes

v3.0.34

Compare Source

Patch Changes

v3.0.33

Compare Source

Patch Changes
  • 445cbe3: fix streaming context_management field location - was incorrectly expected inside delta object but API returns it at message_delta root level

v3.0.32

Compare Source

Patch Changes
  • c33343b: fix(anthropic): add missing param in tool schema

v3.0.31

Compare Source

Patch Changes

v3.0.30

Compare Source

Patch Changes
  • 1524271: chore: add skill information to README files

v3.0.29

Compare Source

Patch Changes
  • b9d105f: Fix cache usage reporting for anthropic stream

v3.0.28

Compare Source

Patch Changes
  • 2445da4: fix(provider/anthropic): populate outputTokens.text field in usage

v3.0.27

Compare Source

Patch Changes
  • 572ea12: feat(anthropic): allow custom/dynamic key for providerOptions

v3.0.26

Compare Source

Patch Changes
  • 2c70b90: chore: update provider docs

v3.0.25

Compare Source

Patch Changes
  • 0bb9bcd: feat(provider/anthropic): add computer_20251124 tool for claude opus 4.5

v3.0.24

Compare Source

Patch Changes

v3.0.23

Compare Source

Patch Changes

v3.0.22

Compare Source

Patch Changes
  • 8ccf04b: Add authToken option to support Authorization: Bearer authentication as an alternative to x-api-key header authentication.

v3.0.21

Compare Source

Patch Changes
  • 662d359: feat(anthropic): deferred results for tool search tool

v3.0.20

Compare Source

Patch Changes
  • 2b8369d: chore: add docs to package dist

v3.0.19

Compare Source

Patch Changes
  • 8dc54db: chore: add src folders to package bundle

v3.0.18

Compare Source

Patch Changes
  • c10bd49: fix(anthropic): handle web_search_result_location citations and add webFetch documents to citationDocuments

v3.0.17

Compare Source

Patch Changes
  • 4729bed: Fix JSON parsing crash when handling Anthropic web_fetch tool error results

v3.0.16

Compare Source

Patch Changes
  • d36fa72: Not sending structured output beta header for json response tool

v3.0.15

Compare Source

Patch Changes

v3.0.14

Compare Source

Patch Changes

v3.0.13

Compare Source

Patch Changes

v3.0.12

Compare Source

Patch Changes

v3.0.11

Compare Source

Patch Changes
  • 8c1c6e3: fix(anthropic): add application/json type regex matching

v3.0.10

Compare Source

Patch Changes
  • 02d9b68: fix input_tokens compatibility

v3.0.9

Compare Source

Patch Changes
  • de2399b: fix(anthropic): assign type urls in file parts correctly

v3.0.8

Compare Source

Patch Changes
  • bee4f82: fix(anthropic): enable structured output support for claude-haiku-4-5

    This fixes an issue where the strict: true property was not included in the request body when using tools with Claude Haiku 4.5, because supportsStructuredOutput was incorrectly set to false for this model.

    Claude Haiku 4.5 supports structured outputs, so the strict property should be forwarded to the Anthropic API when specified on tools.

v3.0.7

Compare Source

Patch Changes

v3.0.6

Compare Source

Patch Changes
  • 2231e84: fix(anthropic): implement temperature/topP mutual exclusivity

    Resolves the Anthropic API breaking change where sampling parameters must use only temperature OR top_p, not both. When both parameters are provided:

    • Temperature takes priority and topP is ignored
    • A warning is added to inform users: "topP is not supported when temperature is set. topP is ignored."
    • The validation only runs when thinking mode is not enabled (thinking mode has its own parameter validation)

    See Anthropic migration guide: https://platform.claude.com/docs/en/about-claude/models/migrating-to-claude-4

v3.0.5

Compare Source

Patch Changes

v3.0.4

Compare Source

Patch Changes
  • d98d9ba: Migrated deprecated output_format parameter to output_config.format for structured outputs + Enabled native structured output support for Bedrock Anthropic models via output_config.format.

v3.0.3

Compare Source

Patch Changes
  • 0a0d29c: feat(anthropic): add support for Opus 4.6 fast mode

v3.0.2

Compare Source

Patch Changes
  • b9d105f: Fix cache usage reporting for anthropic stream

v3.0.1

Compare Source

Patch Changes
  • 8dc54db: chore: add src folders to package bundle

v3.0.0

Compare Source

Major Changes
Minor Changes
Patch Changes
  • 0c3b58b: fix(provider): add specificationVersion to ProviderV3

  • 0adc679: feat(provider): shared spec v3

  • 50b70d6: feat(anthropic): add programmatic tool calling

  • b8ea36e: feat(provider/anthropic): Anthropic-native structured outputs

  • ed537e1: Add support for pdf file in tool result in anthropic

  • 2109385: 'fix(anthropic): Opus 4.5 maxOutputTokens bump 32000 -> 64000'

  • 7c4328e: Adds url-based pdf and image support for anthropic tool results

  • 8d9e8ad: chore(provider): remove generics from EmbeddingModelV3

    Before

    model.textEmbeddingModel("my-model-id");

    After

    model.embeddingModel("my-model-id");
  • f33a018: chore: add model ID for Haiku 4.5

  • b2dbfbf: add context_management for anthropic

  • dce03c4: feat: tool input examples

  • 2625a04: feat(openai); update spec for mcp approval

  • 11e4abe: feat(provider/anthropic): web search tool updates

  • f13958c: chore(antropic): allow custom names for provider-defined tools

  • afb00e3: feat(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.

  • 95f65c2: chore: use import * from zod/v4

  • 954c356: feat(openai): allow custom names for provider-defined tools

  • 9e35785: fix(anthropic): send {} as tool input when streaming tool calls without arguments

  • 544d4e8: chore(specification): rename v3 provider defined tool to provider tool

  • a5f77a6: fix(anthropic): remove outdated tool name docs

  • ca07285: feat(anthropic): add prompt caching validation

  • a5a8db4: chore: add model ID for Sonnet 4.5

  • 1742445: Support for custom provider name in google and anthropic providers

  • e8109d3: feat: tool execution approval

  • 87db851: fix(vertex/anthropic): passing beta header only for structured outputs

  • f6603b7: fix(provider/anthropic): correct raw usage information

  • ed329cb: feat: Provider-V3

  • 3bd2689: feat: extended token usage

  • 1cad0ab: feat: add provider version to user-agent header

  • 2049c5b: Fix handling of error in web fetch tool in anthropic

  • 4c5a6be: feat(provider/anthropic): default and limit maxTokens based on model

  • 9e1e758: fix(anthropic): use default thinking budget when unspecified

  • 589a4ee: fix(anthropic): simplify pulling first chunk

  • 8dac895: feat: LanguageModelV3

  • 6f845b4: Add support for 2025-08-25 code execution tool

  • 9354297: feat(provider/anthropic): add support for Agent Skills

  • 03849b0: throw 500 error when the first stream chunk is an error

  • 0ae783e: feat(anthropic): add the new tool search tools

  • 457318b: chore(provider,ai): switch to SharedV3Warning and unified warnings

  • eb56fc6: fix(anthropic): pull first chunk without async IIFE

  • fa35e95: feat(provider/anthropic): add web fetch tool

  • 80894b3: add return file_id property for anthropic code-execution-20250825 to download output files.

  • 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases

  • 81d4308: feat(provider/anthropic): mcp connector support

  • 6fc35cb: Retain user-supplied betas.

  • f4db7b5: feat(provider/anthropic): expose container from response in provider metadata

  • 6c38080: fix(anthropic): support pdf responses in web_fetch_tool_result schema validation

  • 4616b86: chore: update zod peer depenedency version

  • dedf206: feat(provider/anthropic): expose stop_sequence in provider metadata

  • 983e394: chore(provider/anthropic): add missing provider options jsdoc

  • 0e38a79: support ANTHROPIC_BASE_URL

  • cf4e2a9: Add support for tool calling with structured output

  • f4e4a95: feat(provider/anthropic): enable fine grained tool streaming by default

  • 21f378c: fix(provider/anthropic): do not limit maxTokens when model id is unknown

  • c5440c5: chore(provider/anthropic): update anthropic model ids

  • 1d15673: fix(provider/anthropic): clamp temperature to valid 0-1 range with warnings

  • 9cff587: chore(provider/anthropic): lazy schema loading

  • d129d89: chore(anthropic): remove unnecessary doc

  • 3794514: feat: flexible tool output content support

  • e1e2821: fix(provider/anthropic): support null title in web fetch tool

  • cbf52cd: feat: expose raw finish reason

  • 10c1322: fix: moved dependency @ai-sdk/test-server to devDependencies

  • [d08308b](https://redirect.github.com/verc

Note

PR body was truncated to here.


Configuration

📅 Schedule: (in timezone Asia/Jerusalem)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the renovate label Jun 28, 2026
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
connected-agent Error Error Jun 30, 2026 8:08pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants