Packages

@ai-sdk/anthropic

4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed

Your version

457 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.x · latest line
  2. 4.0.1

    27 Jun 2026

    Only updates a dependency:@ai-sdk/provider-utils 5.0.1

  3. 4.0.0

    25 Jun 2026
    • Breaking

      anthropic: Remove cacheCreationInputTokens from providerMetadata

    • Breaking

      ai: Add support for uploading provider skills using the provider references abstraction

    • Breaking

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

  4. 3.x
  5. 3.0.142 – 3.0.1432 releases that only update dependencies@ai-sdk/provider-utils 4.0.67Show each
  6. 3.0.140

    7 Nov 2026
    • Disable MCP connector tools when structured output falls back to the JSON response tool and the caller selects no tools or a named application tool, and when a named application tool choice falls back to automatic tool selection.

  7. 3.0.139

    6 Nov 2026
    • anthropic: Support adding tools by value in mid-conversation toolChanges (inline-tools-2026-09-15)

    • Reject conflicting inline tool additions when a named tool choice falls back to auto or the internal JSON response tool limits available application tools, including definitions replayed from conversation history. Only validate definitions emitted in the request, preserving warning-only handling of ignored additions on the initial system message.

  8. 3.0.138

    3 Nov 2026
    • Enable native structured output and strict tools 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 outputFormat selection remains unchanged.

    • anthropic: Parse valid JSON string tool input and safely serialize BigInt and cycles in tool results

  9. 3.0.137

    30 Oct 2026
    • anthropic: Use native structured outputs for Claude models that reject forced tool use (Sonnet 5.5, Opus 5.5, Fable 5.1) even when the provider disables them by default, as Amazon Bedrock and Google Vertex do. Self-referencing schemas keep the JSON response tool. Also keep definitions and $defs next to a top-level $ref when sanitizing structured output schemas, so the reference still resolves.

    • anthropic: When the JSON response tool is in use but the model answers in text without calling it (for example with manual thinking, where the forced tool choice is downgraded to auto), return the final answer text instead of dropping it. Text before a tool call, result, or message continuation is still dropped.

    • anthropic: Keep the JSON response tool for schemas that native structured outputs cannot represent when upgrading models that reject forced tool use. Schemas with open objects (maps, free-form objects) would otherwise come back as {}, and schemas with more than 10 optional properties can be rejected as too complex.

  10. 3.0.136

    29 Oct 2026

    Only updates a dependency:@ai-sdk/provider-utils 4.0.63

  11. 3.0.135

    21 Oct 2026
    • 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.

  12. 3.0.134

    20 Oct 2026
    • Add MiniMax M3.1 Flash support with reasoning effort, image detail, video input and frame sampling, prompt cache control, and sampling controls.

  13. 3.0.132 – 3.0.1332 releases that only update dependencies@ai-sdk/provider-utils 4.0.61@ai-sdk/provider 3.0.19Show each
  14. 3.0.131

    15 Oct 2026
    • Fall back to automatic tool choice with a warning when manual thinking is enabled with a required or named tool choice, avoiding an Anthropic API 400 error. Named tool choices send only the selected tool.

  15. 3.0.130

    13 Oct 2026

    Only updates a dependency:@ai-sdk/provider-utils 4.0.58

  16. 3.0.129

    9 Oct 2026
    • anthropic: Preserve tools when disabling tool calls

    • anthropic: Preserve failed tool search results in conversation history

  17. 3.0.128

    7 Oct 2026
    • anthropic: Add Claude Haiku 5.5 support

  18. 3.0.127

    30 Sep 2026
    • provider/anthropic: Add safeguards provider option and safeguardResults provider metadata (dangerous tool use classifier)

  19. 3.0.126

    30 Sep 2026

    Only updates a dependency:@ai-sdk/provider-utils 4.0.57

  20. 3.0.125

    28 Sep 2026
    • anthropic: Add Claude Sonnet 5.5 support

    • eeabdce: Normalize dangling programmatic tool caller references in conversation history after pruning. Before a subsequent user message, omit caller metadata whose source code execution call is missing and emit a warning, preserving the retained tool calls and results. Keep caller metadata unchanged for active tool continuations.

  21. 3.0.124

    28 Sep 2026

    Only updates a dependency:@ai-sdk/provider-utils 4.0.56

  22. 3.0.123

    27 Sep 2026
    • Preserve effort updates on empty system messages at the beginning of a conversation, including consecutive updates.

  23. 3.0.121 – 3.0.1222 releases that only update dependencies@ai-sdk/provider-utils 4.0.54@ai-sdk/provider 3.0.17Show each
  24. 3.0.120

    22 Sep 2026
    • anthropic: Add Claude Opus 5.5 support

  25. 3.0.119

    21 Sep 2026

    Only updates a dependency:@ai-sdk/provider-utils 4.0.52

  26. 3.0.118

    11 Sep 2026
    • anthropic: Expand preserved thinking support to cover prefix_mismatch_behavior: 'error'

  27. 3.0.116

    2 Sep 2026
    • anthropic: Add fable 5.1 support

  28. 3.0.112 – 3.0.1154 releases that only update dependencies@ai-sdk/provider-utils 4.0.50Show each
  29. 3.0.111

    14 Aug 2026
    • Preserve Anthropic server-tool caller metadata in multi-turn conversations.

  30. 3.0.107 – 3.0.1104 releases that only update dependencies@ai-sdk/provider-utils 4.0.45@ai-sdk/provider 3.0.15Show each
  31. 3.0.105

    3 Aug 2026
    • Preserve Anthropic prompt-cache matches by replaying complete code-execution transcripts in their original wire shape.

  32. 3.0.104

    29 Jul 2026

    Only updates a dependency:@ai-sdk/provider-utils 4.0.41

  33. 3.0.103

    26 Jul 2026
    • anthropic: Report thinking tokens as reasoning token usage

  34. 3.0.102

    24 Jul 2026
    • Feat (provider/anthropic): support fallbacks 'default' mode, which routes safety classifier refusals to Anthropic's recommended fallback model (adds the server-side-fallback-2026-07-01 beta automatically)

    • Feat (provider/anthropic): support mid-conversation tool changes via the toolChanges system message provider option, emitting tool_addition/tool_removal content blocks and the mid-conversation-tool-changes-2026-07-01 beta

    • Feat (provider/anthropic): add claude-opus-5 model id with frontier-tier capabilities (128k output tokens, structured output, adaptive thinking, xhigh effort, sampling parameter rejection, thinking-disabled only at effort high or below)

  35. 3.0.101

    23 Jul 2026
    • Fix (provider/anthropic): use current-generation capability defaults for unrecognized Claude model IDs while retaining conservative defaults for legacy Claude and non-Claude models.

  36. 3.0.100

    22 Jul 2026
    • Warn when an unknown model uses the default 4096 max output token limit.

  37. 3.0.99

    21 Jul 2026
    • amazon-bedrock: Sanitize unsupported JSON Schema constraints in native Anthropic structured output

    • provider/anthropic: Warn when parallel tool use is requested with JSON tool structured output

  38. 3.0.98

    17 Jul 2026
    • provider/anthropic: Preserve web search citations when replaying assistant messages

  39. 3.0.96 – 3.0.972 releases that only update dependencies@ai-sdk/provider-utils 4.0.39@ai-sdk/provider 3.0.14Show each
  40. 3.0.95

    7 Jul 2026
    • More precise default message for tool execution denial

  41. 3.0.94

    6 Jul 2026
    • Security

      Prevent prototype pollution when synchronously parsing provider JSON inputs and expose secureJsonParse from provider-utils.

    • Normalize a bare https://api.anthropic.com base URL to include /v1.

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.