PackageTrack

npm · #4482 most downloaded on npm

@ai-sdk/anthropic

4.0.44vercel/ai

Release timeline

588 releases since 2024
20252026

Releases

  1. 3.0.4110 Feb 2026
    Release notes

    Patch Changes

    • c60b393: feat(anthropic): add the new compaction feature
    Open source →
  2. 3.0.4010 Feb 2026
    Release notes

    Patch Changes

    • 8c2b1e1: fix(provider/anthropic): include actual raw usage data for response.usage.raw when streaming
    Open source →
  3. 3.0.398 Feb 2026
    Release notes

    Patch Changes

    • 0a0d29c: feat(anthropic): add support for Opus 4.6 fast mode
    Open source →
  4. 3.0.386 Feb 2026
    Release notes

    Patch Changes

    Open source →
  5. 3.0.375 Feb 2026
    Release notes

    Patch Changes

    • e288302: feat(anthropic): add support for Opus 4.6
    Open source →
  6. 3.0.363 Feb 2026
    Release notes

    Patch Changes

    • 1652320: feat(anthropic): support custom tool-reference content for deferred tool loading
    Open source →
  7. 3.0.351 Feb 2026
    Release notes

    Patch Changes

    Open source →
  8. 3.0.3431 Jan 2026
    Release notes

    Patch Changes

    Open source →
  9. 3.0.3330 Jan 2026
    Release notes

    Patch Changes

    • 445cbe3: fix streaming context_management field location - was incorrectly expected inside delta object but API returns it at message_delta root level
    Open source →
  10. 3.0.3230 Jan 2026
    Release notes

    Patch Changes

    • c33343b: fix(anthropic): add missing param in tool schema
    Open source →
  11. 3.0.3129 Jan 2026
    Release notes

    Patch Changes

    Open source →
  12. 3.0.3029 Jan 2026
    Release notes

    Patch Changes

    • 1524271: chore: add skill information to README files
    Open source →
  13. 3.0.2928 Jan 2026
    Release notes

    Patch Changes

    • b9d105f: Fix cache usage reporting for anthropic stream
    Open source →
  14. 3.0.2827 Jan 2026
    Release notes

    Patch Changes

    • 2445da4: fix(provider/anthropic): populate outputTokens.text field in usage
    Open source →
  15. 3.0.2727 Jan 2026
    Release notes

    Patch Changes

    • 572ea12: feat(anthropic): allow custom/dynamic key for providerOptions
    Open source →
  16. 3.0.2627 Jan 2026
    Release notes

    Patch Changes

    • 2c70b90: chore: update provider docs
    Open source →
  17. 3.0.2527 Jan 2026
    Release notes

    Patch Changes

    • 0bb9bcd: feat(provider/anthropic): add computer_20251124 tool for claude opus 4.5
    Open source →
  18. 3.0.2427 Jan 2026
    Release notes

    Patch Changes

    Open source →
  19. 3.0.2322 Jan 2026
    Release notes

    Patch Changes

    Open source →
  20. 3.0.2222 Jan 2026
    Release notes

    Patch Changes

    • 8ccf04b: Add authToken option to support Authorization: Bearer authentication as an alternative to x-api-key header authentication.
    Open source →
  21. 3.0.2122 Jan 2026
    Release notes

    Patch Changes

    • 662d359: feat(anthropic): deferred results for tool search tool
    Open source →
  22. 3.0.2022 Jan 2026
    Release notes

    Patch Changes

    • 2b8369d: chore: add docs to package dist
    Open source →
  23. 3.0.1922 Jan 2026
    Release notes

    Patch Changes

    • 8dc54db: chore: add src folders to package bundle
    Open source →
  24. 3.0.1821 Jan 2026
    Release notes

    Patch Changes

    • c10bd49: fix(anthropic): handle web_search_result_location citations and add webFetch documents to citationDocuments
    Open source →
  25. 3.0.1720 Jan 2026
    Release notes

    Patch Changes

    • 4729bed: Fix JSON parsing crash when handling Anthropic web_fetch tool error results
    Open source →
  26. 3.0.1620 Jan 2026
    Release notes

    Patch Changes

    • d36fa72: Not sending structured output beta header for json response tool
    Open source →
  27. 3.0.1516 Jan 2026
    Release notes

    Patch Changes

    Open source →
  28. 3.0.1415 Jan 2026
    Release notes

    Patch Changes

    Open source →
  29. 3.0.1314 Jan 2026
    Release notes

    Patch Changes

    Open source →
  30. 3.0.1212 Jan 2026
    Release notes

    Patch Changes

    Open source →
  31. 3.0.1112 Jan 2026
    Release notes

    Patch Changes

    • 8c1c6e3: fix(anthropic): add application/json type regex matching
    Open source →
  32. 3.0.1012 Jan 2026
    Release notes

    Patch Changes

    • 02d9b68: fix input_tokens compatibility
    Open source →
  33. 3.0.97 Jan 2026
    Release notes

    Patch Changes

    • de2399b: fix(anthropic): assign type urls in file parts correctly
    Open source →
  34. 3.0.87 Jan 2026
    Release notes

    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.

    Open source →
  35. 3.0.76 Jan 2026
    Release notes

    Patch Changes

    Open source →
  36. 3.0.65 Jan 2026
    Release notes

    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

    Open source →
  37. 3.0.55 Jan 2026
    Release notes

    Patch Changes

    Open source →
  38. 3.0.45 Jan 2026
    Release notes

    Patch Changes

    • bf39dac: Fix: Use provider tool name in Tool Search Tool results
    Open source →
  39. 3.0.35 Jan 2026
    Release notes

    Patch Changes

    • 77b760d: fix(anthropic): support deferred results for web search/fetch tool
    Open source →
  40. 3.0.230 Dec 2025
    Release notes

    Patch Changes

    Open source →
  41. 3.0.123 Dec 2025
    Release notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
  42. 3.0.022 Dec 2025
    Release notes

    Major Changes

    • dee8b05: ai SDK 6 beta

    Minor Changes

    • 78928cb: release: start 5.1 beta

    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: feat(provider/anthropic): memory tool

    • 05d5b9a: fix(anthropic): make title field nullable in web_fetch and web_search tool output schemas

    • 1bd7d32: feat: tool-specific strict mode

    • 83aaad8: Opus 4.5 and effort provider option

    • Updated dependencies

    Open source →
  43. 3.0.0-beta.9822 Dec 2025pre-release
    Release notes

    Patch Changes

    • 2049c5b: Fix handling of error in web fetch tool in anthropic
    Open source →
  44. 3.0.0-beta.9722 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  45. 3.0.0-beta.9621 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  46. 3.0.0-beta.9520 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  47. 3.0.0-beta.9420 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  48. 3.0.0-beta.9320 Dec 2025pre-release
    Release notes

    Patch Changes

    • 50b70d6: feat(anthropic): add programmatic tool calling
    • Updated dependencies [50b70d6]
    Open source →
  49. 3.0.0-beta.9219 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  50. 3.0.0-beta.9117 Dec 2025pre-release
    Release notes

    Patch Changes

    • d129d89: chore(anthropic): remove unnecessary doc
    Open source →
  51. 3.0.0-beta.9017 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  52. 3.0.0-beta.8916 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  53. 3.0.0-beta.8816 Dec 2025pre-release
    Release notes

    Patch Changes

    • 87db851: fix(vertex/anthropic): passing beta header only for structured outputs
    Open source →
  54. 3.0.0-beta.8715 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  55. 3.0.0-beta.8615 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  56. 3.0.0-beta.8515 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  57. 3.0.0-beta.8415 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  58. 3.0.0-beta.8312 Dec 2025pre-release
    Release notes

    Patch Changes

    • 6c38080: fix(anthropic): support pdf responses in web_fetch_tool_result schema validation
    Open source →
  59. 3.0.0-beta.8211 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →
  60. 3.0.0-beta.8110 Dec 2025pre-release
    Release notes

    Patch Changes

    Open source →