Détail du package

@ai-sdk/anthropic

vercel2.7mApache-2.02.0.9

The Anthropic provider for the AI SDK contains language model support for the Anthropic Messages API.

ai

readme

AI SDK - Anthropic Provider

The Anthropic provider for the AI SDK contains language model support for the Anthropic Messages API.

Setup

The Anthropic provider is available in the @ai-sdk/anthropic module. You can install it with

npm i @ai-sdk/anthropic

Provider Instance

You can import the default provider instance anthropic from @ai-sdk/anthropic:

import { anthropic } from '@ai-sdk/anthropic';

Example

import { anthropic } from '@ai-sdk/anthropic';
import { generateText } from 'ai';

const { text } = await generateText({
  model: anthropic('claude-3-haiku-20240307'),
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});

Documentation

Please check out the Anthropic provider documentation for more information.

changelog

@ai-sdk/anthropic

2.0.9

Patch Changes

  • cdc6b7a: fix(provider/anthropic): disable parallel tool use when using json output tool for structured responses

2.0.8

Patch Changes

  • Updated dependencies [886e7cd]
    • @ai-sdk/provider-utils@3.0.7

2.0.7

Patch Changes

  • Updated dependencies [1b5a3d3]
    • @ai-sdk/provider-utils@3.0.6

2.0.6

Patch Changes

  • Updated dependencies [0857788]
    • @ai-sdk/provider-utils@3.0.5

2.0.5

Patch Changes

  • Updated dependencies [68751f9]
    • @ai-sdk/provider-utils@3.0.4

2.0.4

Patch Changes

  • ae859ce: Added support for Anthropic provider's server-side code execution tool

2.0.3

Patch Changes

  • Updated dependencies [034e229]
  • Updated dependencies [f25040d]
    • @ai-sdk/provider-utils@3.0.3

2.0.2

Patch Changes

  • Updated dependencies [38ac190]
    • @ai-sdk/provider-utils@3.0.2

2.0.1

Patch Changes

  • Updated dependencies [90d212f]
    • @ai-sdk/provider-utils@3.0.1

2.0.0

Major Changes

  • d5f588f: AI SDK 5

Patch Changes

  • ad66c0e: feat (provider/anthropic): json response schema support via tool calls
  • 8f2854f: feat (provider/anthropic): send web search tool calls
  • 5d959e7: refactor: updated openai + anthropic tool use server side
  • 8dfcb11: feat(anthropic/citation): text support for citations
  • 9f73965: feat (provider/anthropic): parse websearch tool args
  • e2aceaf: feat: add raw chunk support
  • fdff8a4: fix(provider/anthropic): correct Claude 4 model ID format
  • eb173f1: chore (providers): remove model shorthand deprecation warnings
  • 4f26d59: feat(provider/anthropic): add disable parallel tool use option
  • 25f3454: feat(provider/anthropic): add PDF citation support with document sources for streamText
  • a85c85f: fix (provider/anthropic): streaming json output
  • 5c9eec4: chore(providers/anthropic): switch to providerOptions
  • 2e13791: feat(anthropic): add server-side web search support
  • 66962ed: fix(packages): export node10 compatible types
  • 075711d: fix (provider/anthropic): return stop finish reason for json output with tool
  • 269683f: Add raw Anthropic usage information to provider metadata
  • d601ed9: fix (provider/anthropic): send tool call id in tool-input-start chunk
  • b9ddcdd: feat(anthropic): add text_editor_20250429 tool for Claude 4 models
  • 91715e5: fix (provider/google-vertex): fix anthropic support for image urls in messages
  • ca8aac6: feat (providers/anthropic): add claude v4 models
  • 61ab528: Add support for URL-based PDF documents in the Anthropic provider
  • 84577c8: fix (providers/anthropic): remove fine grained tool streaming beta
  • d1a034f: feature: using Zod 4 for internal stuff
  • 6392f60: fix(anthropic): resolve web search API validation errors with partial location + provider output
  • 205077b: fix: improve Zod compatibility
  • ee5a9c0: feat: streamText onChunk raw chunk support
  • f418dd7: Added anthropic provider defined tool support to amazon bedrock
  • 362b048: add web search tool support
  • 399e056: fix: anthropic computer tool
  • 0b678b2: feat (provider/anthropic): enable streaming tool calls
  • f10304b: feat(tool-calling): don't require the user to have to pass parameters
  • a753b3a: feat (provider/anthropic): cache control for tools
  • Updated dependencies [a571d6e]
  • Updated dependencies [742b7be]
  • Updated dependencies [e7fcc86]
  • Updated dependencies [7cddb72]
  • Updated dependencies [ccce59b]
  • Updated dependencies [e2b9e4b]
  • Updated dependencies [95857aa]
  • Updated dependencies [45c1ea2]
  • Updated dependencies [6f6bb89]
  • Updated dependencies [060370c]
  • Updated dependencies [dc714f3]
  • Updated dependencies [b5da06a]
  • Updated dependencies [d1a1aa1]
  • Updated dependencies [63f9e9b]
  • Updated dependencies [5d142ab]
  • Updated dependencies [d5f588f]
  • Updated dependencies [e025824]
  • Updated dependencies [0571b98]
  • Updated dependencies [b6b43c7]
  • Updated dependencies [4fef487]
  • Updated dependencies [48d257a]
  • Updated dependencies [0c0c0b3]
  • Updated dependencies [0d2c085]
  • Updated dependencies [40acf9b]
  • Updated dependencies [9222aeb]
  • Updated dependencies [e2aceaf]
  • Updated dependencies [411e483]
  • Updated dependencies [8ba77a7]
  • Updated dependencies [7b3ae3f]
  • Updated dependencies [a166433]
  • Updated dependencies [26735b5]
  • Updated dependencies [443d8ec]
  • Updated dependencies [a8c8bd5]
  • Updated dependencies [abf9a79]
  • Updated dependencies [14c9410]
  • Updated dependencies [e86be6f]
  • Updated dependencies [9bf7291]
  • Updated dependencies [2e13791]
  • Updated dependencies [9f95b35]
  • Updated dependencies [66962ed]
  • Updated dependencies [0d06df6]
  • Updated dependencies [472524a]
  • Updated dependencies [dd3ff01]
  • Updated dependencies [d9c98f4]
  • Updated dependencies [05d2819]
  • Updated dependencies [9301f86]
  • Updated dependencies [0a87932]
  • Updated dependencies [c4a2fec]
  • Updated dependencies [957b739]
  • Updated dependencies [79457bd]
  • Updated dependencies [a3f768e]
  • Updated dependencies [7435eb5]
  • Updated dependencies [8aa9e20]
  • Updated dependencies [4617fab]
  • Updated dependencies [ac34802]
  • Updated dependencies [0054544]
  • Updated dependencies [cb68df0]
  • Updated dependencies [ad80501]
  • Updated dependencies [68ecf2f]
  • Updated dependencies [9e9c809]
  • Updated dependencies [32831c6]
  • Updated dependencies [6dc848c]
  • Updated dependencies [6b98118]
  • Updated dependencies [d0f9495]
  • Updated dependencies [63d791d]
  • Updated dependencies [87b828f]
  • Updated dependencies [3f2f00c]
  • Updated dependencies [bfdca8d]
  • Updated dependencies [0ff02bb]
  • Updated dependencies [7979f7f]
  • Updated dependencies [39a4fab]
  • Updated dependencies [44f4aba]
  • Updated dependencies [9bd5ab5]
  • Updated dependencies [57edfcb]
  • Updated dependencies [faf8446]
  • Updated dependencies [7ea4132]
  • Updated dependencies [d1a034f]
  • Updated dependencies [5c56081]
  • Updated dependencies [fd65bc6]
  • Updated dependencies [023ba40]
  • Updated dependencies [ea7a7c9]
  • Updated dependencies [26535e0]
  • Updated dependencies [e030615]
  • Updated dependencies [5e57fae]
  • Updated dependencies [393138b]
  • Updated dependencies [c57e248]
  • Updated dependencies [88a8ee5]
  • Updated dependencies [41fa418]
  • Updated dependencies [205077b]
  • Updated dependencies [71f938d]
  • Updated dependencies [3795467]
  • Updated dependencies [28a5ed5]
  • Updated dependencies [7182d14]
  • Updated dependencies [c1e6647]
  • Updated dependencies [1766ede]
  • Updated dependencies [811dff3]
  • Updated dependencies [f10304b]
  • Updated dependencies [dd5fd43]
  • Updated dependencies [33f4a6a]
  • Updated dependencies [383cbfa]
  • Updated dependencies [27deb4d]
  • Updated dependencies [c4df419]
    • @ai-sdk/provider-utils@3.0.0
    • @ai-sdk/provider@2.0.0

2.0.0-beta.13

Patch Changes

  • Updated dependencies [88a8ee5]
    • @ai-sdk/provider-utils@3.0.0-beta.10

2.0.0-beta.12

Patch Changes

  • f418dd7: Added anthropic provider defined tool support to amazon bedrock
  • Updated dependencies [27deb4d]
    • @ai-sdk/provider@2.0.0-beta.2
    • @ai-sdk/provider-utils@3.0.0-beta.9

2.0.0-beta.11

Patch Changes

  • eb173f1: chore (providers): remove model shorthand deprecation warnings
  • Updated dependencies [dd5fd43]
    • @ai-sdk/provider-utils@3.0.0-beta.8

2.0.0-beta.10

Patch Changes

  • 269683f: Add raw Anthropic usage information to provider metadata
  • Updated dependencies [e7fcc86]
    • @ai-sdk/provider-utils@3.0.0-beta.7

2.0.0-beta.9

Patch Changes

  • 4f26d59: feat(provider/anthropic): add disable parallel tool use option
  • a753b3a: feat (provider/anthropic): cache control for tools
  • Updated dependencies [ac34802]
    • @ai-sdk/provider-utils@3.0.0-beta.6

2.0.0-beta.8

Patch Changes

  • Updated dependencies [57edfcb]
  • Updated dependencies [383cbfa]
    • @ai-sdk/provider-utils@3.0.0-beta.5

2.0.0-beta.7

Patch Changes

  • 205077b: fix: improve Zod compatibility
  • Updated dependencies [205077b]
    • @ai-sdk/provider-utils@3.0.0-beta.4

2.0.0-beta.6

Patch Changes

  • Updated dependencies [05d2819]
    • @ai-sdk/provider-utils@3.0.0-beta.3

2.0.0-beta.5

Patch Changes

  • b9ddcdd: feat(anthropic): add text_editor_20250429 tool for Claude 4 models

2.0.0-beta.4

Patch Changes

  • fdff8a4: fix(provider/anthropic): correct Claude 4 model ID format
  • 84577c8: fix (providers/anthropic): remove fine grained tool streaming beta

2.0.0-beta.3

Patch Changes

  • a85c85f: fix (provider/anthropic): streaming json output
  • d1a034f: feature: using Zod 4 for internal stuff
  • 0b678b2: feat (provider/anthropic): enable streaming tool calls
  • Updated dependencies [0571b98]
  • Updated dependencies [39a4fab]
  • Updated dependencies [d1a034f]
    • @ai-sdk/provider-utils@3.0.0-beta.2

2.0.0-beta.2

Patch Changes

  • d601ed9: fix (provider/anthropic): send tool call id in tool-input-start chunk

2.0.0-beta.1

Patch Changes

  • 8f2854f: feat (provider/anthropic): send web search tool calls
  • 5d959e7: refactor: updated openai + anthropic tool use server side
  • 9f73965: feat (provider/anthropic): parse websearch tool args
  • 399e056: fix: anthropic computer tool
  • Updated dependencies [742b7be]
  • Updated dependencies [7cddb72]
  • Updated dependencies [ccce59b]
  • Updated dependencies [e2b9e4b]
  • Updated dependencies [45c1ea2]
  • Updated dependencies [e025824]
  • Updated dependencies [0d06df6]
  • Updated dependencies [472524a]
  • Updated dependencies [dd3ff01]
  • Updated dependencies [7435eb5]
  • Updated dependencies [cb68df0]
  • Updated dependencies [bfdca8d]
  • Updated dependencies [44f4aba]
  • Updated dependencies [023ba40]
  • Updated dependencies [5e57fae]
  • Updated dependencies [71f938d]
  • Updated dependencies [28a5ed5]
    • @ai-sdk/provider@2.0.0-beta.1
    • @ai-sdk/provider-utils@3.0.0-beta.1

2.0.0-alpha.15

Patch Changes

  • Updated dependencies [48d257a]
  • Updated dependencies [8ba77a7]
    • @ai-sdk/provider@2.0.0-alpha.15
    • @ai-sdk/provider-utils@3.0.0-alpha.15

2.0.0-alpha.14

Patch Changes

  • 2e13791: feat(anthropic): add server-side web search support
  • 6392f60: fix(anthropic): resolve web search API validation errors with partial location + provider output
  • Updated dependencies [b5da06a]
  • Updated dependencies [63f9e9b]
  • Updated dependencies [2e13791]
    • @ai-sdk/provider@2.0.0-alpha.14
    • @ai-sdk/provider-utils@3.0.0-alpha.14

2.0.0-alpha.13

Patch Changes

  • 8dfcb11: feat(anthropic/citation): text support for citations
  • ee5a9c0: feat: streamText onChunk raw chunk support
  • Updated dependencies [68ecf2f]
    • @ai-sdk/provider@2.0.0-alpha.13
    • @ai-sdk/provider-utils@3.0.0-alpha.13

2.0.0-alpha.12

Patch Changes

  • e2aceaf: feat: add raw chunk support
  • Updated dependencies [e2aceaf]
    • @ai-sdk/provider@2.0.0-alpha.12
    • @ai-sdk/provider-utils@3.0.0-alpha.12

2.0.0-alpha.11

Patch Changes

  • 25f3454: feat(provider/anthropic): add PDF citation support with document sources for streamText
  • Updated dependencies [c1e6647]
    • @ai-sdk/provider@2.0.0-alpha.11
    • @ai-sdk/provider-utils@3.0.0-alpha.11

2.0.0-alpha.10

Patch Changes

  • Updated dependencies [c4df419]
    • @ai-sdk/provider@2.0.0-alpha.10
    • @ai-sdk/provider-utils@3.0.0-alpha.10

2.0.0-alpha.9

Patch Changes

  • 362b048: add web search tool support
  • Updated dependencies [811dff3]
    • @ai-sdk/provider@2.0.0-alpha.9
    • @ai-sdk/provider-utils@3.0.0-alpha.9

2.0.0-alpha.8

Patch Changes

  • ad66c0e: feat (provider/anthropic): json response schema support via tool calls
  • 075711d: fix (provider/anthropic): return stop finish reason for json output with tool
  • Updated dependencies [4fef487]
  • Updated dependencies [9222aeb]
    • @ai-sdk/provider-utils@3.0.0-alpha.8
    • @ai-sdk/provider@2.0.0-alpha.8

2.0.0-alpha.7

Patch Changes

  • Updated dependencies [5c56081]
    • @ai-sdk/provider@2.0.0-alpha.7
    • @ai-sdk/provider-utils@3.0.0-alpha.7

2.0.0-alpha.6

Patch Changes

  • Updated dependencies [0d2c085]
    • @ai-sdk/provider@2.0.0-alpha.6
    • @ai-sdk/provider-utils@3.0.0-alpha.6

2.0.0-alpha.4

Patch Changes

  • ca8aac6: feat (providers/anthropic): add claude v4 models
  • Updated dependencies [dc714f3]
    • @ai-sdk/provider@2.0.0-alpha.4
    • @ai-sdk/provider-utils@3.0.0-alpha.4

2.0.0-alpha.3

Patch Changes

  • Updated dependencies [6b98118]
    • @ai-sdk/provider@2.0.0-alpha.3
    • @ai-sdk/provider-utils@3.0.0-alpha.3

2.0.0-alpha.2

Patch Changes

  • Updated dependencies [26535e0]
    • @ai-sdk/provider@2.0.0-alpha.2
    • @ai-sdk/provider-utils@3.0.0-alpha.2

2.0.0-alpha.1

Patch Changes

  • Updated dependencies [3f2f00c]
    • @ai-sdk/provider@2.0.0-alpha.1
    • @ai-sdk/provider-utils@3.0.0-alpha.1

2.0.0-canary.19

Patch Changes

  • Updated dependencies [faf8446]
    • @ai-sdk/provider-utils@3.0.0-canary.19

2.0.0-canary.18

Patch Changes

  • Updated dependencies [40acf9b]
    • @ai-sdk/provider-utils@3.0.0-canary.18

2.0.0-canary.17

Patch Changes

  • Updated dependencies [ea7a7c9]
    • @ai-sdk/provider-utils@3.0.0-canary.17

2.0.0-canary.16

Patch Changes

  • Updated dependencies [87b828f]
    • @ai-sdk/provider-utils@3.0.0-canary.16

2.0.0-canary.15

Patch Changes

  • Updated dependencies [a571d6e]
  • Updated dependencies [a8c8bd5]
  • Updated dependencies [7979f7f]
  • Updated dependencies [41fa418]
    • @ai-sdk/provider-utils@3.0.0-canary.15
    • @ai-sdk/provider@2.0.0-canary.14

2.0.0-canary.14

Patch Changes

  • Updated dependencies [957b739]
  • Updated dependencies [9bd5ab5]
    • @ai-sdk/provider-utils@3.0.0-canary.14
    • @ai-sdk/provider@2.0.0-canary.13

2.0.0-canary.13

Patch Changes

  • Updated dependencies [7b3ae3f]
  • Updated dependencies [0ff02bb]
    • @ai-sdk/provider@2.0.0-canary.12
    • @ai-sdk/provider-utils@3.0.0-canary.13

2.0.0-canary.12

Patch Changes

  • 5c9eec4: chore(providers/anthropic): switch to providerOptions
  • Updated dependencies [9bf7291]
  • Updated dependencies [4617fab]
  • Updated dependencies [e030615]
    • @ai-sdk/provider@2.0.0-canary.11
    • @ai-sdk/provider-utils@3.0.0-canary.12

2.0.0-canary.11

Patch Changes

  • 66962ed: fix(packages): export node10 compatible types
  • Updated dependencies [66962ed]
  • Updated dependencies [9301f86]
  • Updated dependencies [a3f768e]
    • @ai-sdk/provider-utils@3.0.0-canary.11
    • @ai-sdk/provider@2.0.0-canary.10

2.0.0-canary.10

Patch Changes

  • Updated dependencies [e86be6f]
    • @ai-sdk/provider@2.0.0-canary.9
    • @ai-sdk/provider-utils@3.0.0-canary.10

2.0.0-canary.9

Patch Changes

  • Updated dependencies [95857aa]
  • Updated dependencies [7ea4132]
    • @ai-sdk/provider@2.0.0-canary.8
    • @ai-sdk/provider-utils@3.0.0-canary.9

2.0.0-canary.8

Patch Changes

  • Updated dependencies [5d142ab]
  • Updated dependencies [b6b43c7]
  • Updated dependencies [8aa9e20]
  • Updated dependencies [3795467]
    • @ai-sdk/provider-utils@3.0.0-canary.8
    • @ai-sdk/provider@2.0.0-canary.7

2.0.0-canary.7

Patch Changes

  • Updated dependencies [26735b5]
  • Updated dependencies [443d8ec]
  • Updated dependencies [14c9410]
  • Updated dependencies [d9c98f4]
  • Updated dependencies [c4a2fec]
  • Updated dependencies [0054544]
  • Updated dependencies [9e9c809]
  • Updated dependencies [32831c6]
  • Updated dependencies [d0f9495]
  • Updated dependencies [fd65bc6]
  • Updated dependencies [393138b]
  • Updated dependencies [7182d14]
    • @ai-sdk/provider@2.0.0-canary.6
    • @ai-sdk/provider-utils@3.0.0-canary.7

2.0.0-canary.6

Patch Changes

  • f10304b: feat(tool-calling): don't require the user to have to pass parameters
  • Updated dependencies [411e483]
  • Updated dependencies [79457bd]
  • Updated dependencies [ad80501]
  • Updated dependencies [1766ede]
  • Updated dependencies [f10304b]
    • @ai-sdk/provider@2.0.0-canary.5
    • @ai-sdk/provider-utils@3.0.0-canary.6

2.0.0-canary.5

Patch Changes

  • Updated dependencies [6f6bb89]
    • @ai-sdk/provider@2.0.0-canary.4
    • @ai-sdk/provider-utils@3.0.0-canary.5

2.0.0-canary.4

Patch Changes

  • Updated dependencies [d1a1aa1]
    • @ai-sdk/provider@2.0.0-canary.3
    • @ai-sdk/provider-utils@3.0.0-canary.4

2.0.0-canary.3

Patch Changes

  • 61ab528: Add support for URL-based PDF documents in the Anthropic provider
  • Updated dependencies [a166433]
  • Updated dependencies [abf9a79]
  • Updated dependencies [9f95b35]
  • Updated dependencies [0a87932]
  • Updated dependencies [6dc848c]
    • @ai-sdk/provider-utils@3.0.0-canary.3
    • @ai-sdk/provider@2.0.0-canary.2

2.0.0-canary.2

Patch Changes

  • Updated dependencies [c57e248]
  • Updated dependencies [33f4a6a]
    • @ai-sdk/provider@2.0.0-canary.1
    • @ai-sdk/provider-utils@3.0.0-canary.2

2.0.0-canary.1

Patch Changes

  • Updated dependencies [060370c]
  • Updated dependencies [0c0c0b3]
  • Updated dependencies [63d791d]
    • @ai-sdk/provider-utils@3.0.0-canary.1

2.0.0-canary.0

Major Changes

  • d5f588f: AI SDK 5

Patch Changes

  • 91715e5: fix (provider/google-vertex): fix anthropic support for image urls in messages
  • Updated dependencies [d5f588f]
    • @ai-sdk/provider-utils@3.0.0-canary.0
    • @ai-sdk/provider@2.0.0-canary.0

1.2.4

Patch Changes

  • Updated dependencies [28be004]
    • @ai-sdk/provider-utils@2.2.3

1.2.3

Patch Changes

  • Updated dependencies [b01120e]
    • @ai-sdk/provider-utils@2.2.2

1.2.2

Patch Changes

  • aeaa92b: feat (provider/anthropic): expose type for validating Anthropic responses provider options

1.2.1

Patch Changes

  • Updated dependencies [f10f0fa]
    • @ai-sdk/provider-utils@2.2.1

1.2.0

Minor Changes

  • 5bc638d: AI SDK 4.2

Patch Changes

  • Updated dependencies [5bc638d]
    • @ai-sdk/provider@1.1.0
    • @ai-sdk/provider-utils@2.2.0

1.1.19

Patch Changes

  • Updated dependencies [d0c4659]
    • @ai-sdk/provider-utils@2.1.15

1.1.18

Patch Changes

  • Updated dependencies [0bd5bc6]
    • @ai-sdk/provider@1.0.12
    • @ai-sdk/provider-utils@2.1.14

1.1.17

Patch Changes

  • Updated dependencies [2e1101a]
    • @ai-sdk/provider@1.0.11
    • @ai-sdk/provider-utils@2.1.13

1.1.16

Patch Changes

  • Updated dependencies [1531959]
    • @ai-sdk/provider-utils@2.1.12

1.1.15

Patch Changes

  • e1d3d42: feat (ai): expose raw response body in generateText and generateObject
  • Updated dependencies [e1d3d42]
    • @ai-sdk/provider@1.0.10
    • @ai-sdk/provider-utils@2.1.11

1.1.14

Patch Changes

  • 0e8b66c: feat (provider/anthropic): support image urls

1.1.13

Patch Changes

  • 3004b14: feat(provider/anthropic): add bash_20250124 and text_editor_20250124 tools

1.1.12

Patch Changes

  • b3e5a15: fix (provider/anthropic): add model setting to allow omitting reasoning content from model requests

1.1.11

Patch Changes

  • 00276ae: feat (provider/anthropic): update types for Anthropic computer_20250124 tool
  • a4f8714: feat (provider/anthropic): update beta flag for sonnet-3-7 when using new computer-use tool

1.1.10

Patch Changes

  • ddf9740: feat (ai): add anthropic reasoning
  • Updated dependencies [ddf9740]
    • @ai-sdk/provider@1.0.9
    • @ai-sdk/provider-utils@2.1.10

1.1.9

Patch Changes

  • Updated dependencies [2761f06]
    • @ai-sdk/provider@1.0.8
    • @ai-sdk/provider-utils@2.1.9

1.1.8

Patch Changes

  • Updated dependencies [2e898b4]
    • @ai-sdk/provider-utils@2.1.8

1.1.7

Patch Changes

  • Updated dependencies [3ff4ef8]
    • @ai-sdk/provider-utils@2.1.7

1.1.6

Patch Changes

  • Updated dependencies [d89c3b9]
    • @ai-sdk/provider@1.0.7
    • @ai-sdk/provider-utils@2.1.6

1.1.5

Patch Changes

  • Updated dependencies [3a602ca]
    • @ai-sdk/provider-utils@2.1.5

1.1.4

Patch Changes

  • Updated dependencies [066206e]
    • @ai-sdk/provider-utils@2.1.4

1.1.3

Patch Changes

  • Updated dependencies [39e5c1f]
    • @ai-sdk/provider-utils@2.1.3

1.1.2

Patch Changes

  • Updated dependencies [ed012d2]
  • Updated dependencies [3a58a2e]
    • @ai-sdk/provider-utils@2.1.2
    • @ai-sdk/provider@1.0.6

1.1.1

Patch Changes

  • 858f934: feat (provider/anthropic): default cache-control on and mark model setting deprecated
  • b284e2c: feat (provider/google-vertex): support prompt caching for Anthropic Claude models
  • Updated dependencies [e7a9ec9]
  • Updated dependencies [0a699f1]
    • @ai-sdk/provider-utils@2.1.1
    • @ai-sdk/provider@1.0.5

1.1.0

Minor Changes

  • 62ba5ad: release: AI SDK 4.1

Patch Changes

  • Updated dependencies [62ba5ad]
    • @ai-sdk/provider-utils@2.1.0

1.0.9

Patch Changes

  • Updated dependencies [00114c5]
    • @ai-sdk/provider-utils@2.0.8

1.0.8

Patch Changes

  • Updated dependencies [90fb95a]
  • Updated dependencies [e6dfef4]
  • Updated dependencies [6636db6]
    • @ai-sdk/provider-utils@2.0.7

1.0.7

Patch Changes

  • Updated dependencies [19a2ce7]
  • Updated dependencies [19a2ce7]
  • Updated dependencies [6337688]
    • @ai-sdk/provider@1.0.4
    • @ai-sdk/provider-utils@2.0.6

1.0.6

Patch Changes

  • 5ed5e45: chore (config): Use ts-library.json tsconfig for no-UI libs.
  • Updated dependencies [5ed5e45]
    • @ai-sdk/provider-utils@2.0.5
    • @ai-sdk/provider@1.0.3

1.0.5

Patch Changes

  • Updated dependencies [09a9cab]
    • @ai-sdk/provider@1.0.2
    • @ai-sdk/provider-utils@2.0.4

1.0.4

Patch Changes

  • bcd892e: feat (provider/google-vertex): Add support for Anthropic models.

1.0.3

Patch Changes

  • Updated dependencies [0984f0b]
    • @ai-sdk/provider-utils@2.0.3

1.0.2

Patch Changes

  • Updated dependencies [b446ae5]
    • @ai-sdk/provider@1.0.1
    • @ai-sdk/provider-utils@2.0.2

1.0.1

Patch Changes

  • Updated dependencies [c3ab5de]
    • @ai-sdk/provider-utils@2.0.1

1.0.0

Major Changes

  • 66060f7: chore (release): bump major version to 4.0
  • 0d3d3f5: chore (providers): remove baseUrl option
  • 8ad0504: chore (provider/anthropic): remove Anthropic facade
  • 2f6e8c0: chore (provider/anthropic): remove topK model setting

Patch Changes

  • Updated dependencies [b469a7e]
  • Updated dependencies [dce4158]
  • Updated dependencies [c0ddc24]
  • Updated dependencies [b1da952]
  • Updated dependencies [dce4158]
  • Updated dependencies [8426f55]
  • Updated dependencies [db46ce5]
    • @ai-sdk/provider-utils@2.0.0
    • @ai-sdk/provider@1.0.0

1.0.0-canary.4

Major Changes

  • 2f6e8c0: chore (provider/anthropic): remove topK model setting

1.0.0-canary.3

Patch Changes

  • Updated dependencies [8426f55]
    • @ai-sdk/provider-utils@2.0.0-canary.3

1.0.0-canary.2

Patch Changes

  • Updated dependencies [dce4158]
  • Updated dependencies [dce4158]
    • @ai-sdk/provider-utils@2.0.0-canary.2

1.0.0-canary.1

Major Changes

  • 0d3d3f5: chore (providers): remove baseUrl option
  • 8ad0504: chore (provider/anthropic): remove Anthropic facade

Patch Changes

  • Updated dependencies [b1da952]
    • @ai-sdk/provider-utils@2.0.0-canary.1

1.0.0-canary.0

Major Changes

  • 66060f7: chore (release): bump major version to 4.0

Patch Changes

  • Updated dependencies [b469a7e]
  • Updated dependencies [c0ddc24]
  • Updated dependencies [db46ce5]
    • @ai-sdk/provider-utils@2.0.0-canary.0
    • @ai-sdk/provider@1.0.0-canary.0

0.0.56

Patch Changes

  • e6042b1: feat (provider/anthropic): add haiku 3.5 model ids

0.0.55

Patch Changes

  • ac380e3: fix (provider/anthropic): continuation mode with 3+ steps

0.0.54

Patch Changes

  • 4d2e53b: feat (provider/anthropic): pdf support
  • c8afcb5: feat (provider/anthropic): allow using computer use and cache control at the same time

0.0.53

Patch Changes

  • 3b1b69a: feat (provider/anthropic): add computer use tools
  • 3b1b69a: feat: provider-defined tools
  • 8c222cd: feat (provider/anthropic): update model ids
  • 811a317: feat (ai/core): multi-part tool results (incl. images)
  • Updated dependencies [aa98cdb]
  • Updated dependencies [1486128]
  • Updated dependencies [7b937c5]
  • Updated dependencies [3b1b69a]
  • Updated dependencies [811a317]
    • @ai-sdk/provider-utils@1.0.22
    • @ai-sdk/provider@0.0.26

0.0.52

Patch Changes

  • b9b0d7b: feat (ai): access raw request body
  • Updated dependencies [b9b0d7b]
    • @ai-sdk/provider@0.0.25
    • @ai-sdk/provider-utils@1.0.21

0.0.51

Patch Changes

  • Updated dependencies [d595d0d]
    • @ai-sdk/provider@0.0.24
    • @ai-sdk/provider-utils@1.0.20

0.0.50

Patch Changes

  • Updated dependencies [273f696]
    • @ai-sdk/provider-utils@1.0.19

0.0.49

Patch Changes

  • 03313cd: feat (ai): expose response id, response model, response timestamp in telemetry and api
  • 3be7c1c: fix (provider/anthropic): support prompt caching on assistant messages
  • Updated dependencies [03313cd]
  • Updated dependencies [3be7c1c]
    • @ai-sdk/provider-utils@1.0.18
    • @ai-sdk/provider@0.0.23

0.0.48

Patch Changes

  • 26515cb: feat (ai/provider): introduce ProviderV1 specification
  • Updated dependencies [26515cb]
    • @ai-sdk/provider@0.0.22
    • @ai-sdk/provider-utils@1.0.17

0.0.47

Patch Changes

  • Updated dependencies [09f895f]
    • @ai-sdk/provider-utils@1.0.16

0.0.46

Patch Changes

  • Updated dependencies [d67fa9c]
    • @ai-sdk/provider-utils@1.0.15

0.0.45

Patch Changes

  • 95a53a3: chore (provider/anthropic): remove tool calls beta header

0.0.44

Patch Changes

  • Updated dependencies [f2c025e]
    • @ai-sdk/provider@0.0.21
    • @ai-sdk/provider-utils@1.0.14

0.0.43

Patch Changes

  • 6ac355e: feat (provider/anthropic): add cache control support
  • Updated dependencies [6ac355e]
    • @ai-sdk/provider@0.0.20
    • @ai-sdk/provider-utils@1.0.13

0.0.42

Patch Changes

  • dd712ac: fix: use FetchFunction type to prevent self-reference
  • Updated dependencies [dd712ac]
    • @ai-sdk/provider-utils@1.0.12

0.0.41

Patch Changes

  • 89b18ca: fix (ai/provider): send finish reason 'unknown' by default
  • Updated dependencies [dd4a0f5]
    • @ai-sdk/provider@0.0.19
    • @ai-sdk/provider-utils@1.0.11

0.0.40

Patch Changes

  • Updated dependencies [4bd27a9]
  • Updated dependencies [845754b]
    • @ai-sdk/provider-utils@1.0.10
    • @ai-sdk/provider@0.0.18

0.0.39

Patch Changes

  • Updated dependencies [029af4c]
    • @ai-sdk/provider@0.0.17
    • @ai-sdk/provider-utils@1.0.9

0.0.38

Patch Changes

  • Updated dependencies [d58517b]
    • @ai-sdk/provider@0.0.16
    • @ai-sdk/provider-utils@1.0.8

0.0.37

Patch Changes

  • Updated dependencies [96aed25]
    • @ai-sdk/provider@0.0.15
    • @ai-sdk/provider-utils@1.0.7

0.0.36

Patch Changes

  • Updated dependencies [9614584]
  • Updated dependencies [0762a22]
    • @ai-sdk/provider-utils@1.0.6

0.0.35

Patch Changes

  • fe2128f0: feat (provider/anthropic): combine sequential assistant messages into one

0.0.34

Patch Changes

  • 7d0fd5a8: fix (provider/anthropic): handle error stream chunks

0.0.33

Patch Changes

  • a8d1c9e9: feat (ai/core): parallel image download
  • Updated dependencies [a8d1c9e9]
    • @ai-sdk/provider-utils@1.0.5
    • @ai-sdk/provider@0.0.14

0.0.32

Patch Changes

  • Updated dependencies [4f88248f]
    • @ai-sdk/provider-utils@1.0.4

0.0.31

Patch Changes

  • 2b9da0f0: feat (core): support stopSequences setting.
  • a5b58845: feat (core): support topK setting
  • 4aa8deb3: feat (provider): support responseFormat setting in provider api
  • 13b27ec6: chore (ai/core): remove grammar mode
  • Updated dependencies [2b9da0f0]
  • Updated dependencies [a5b58845]
  • Updated dependencies [4aa8deb3]
  • Updated dependencies [13b27ec6]
    • @ai-sdk/provider@0.0.13
    • @ai-sdk/provider-utils@1.0.3

0.0.30

Patch Changes

  • 4c6b80f7: chore (provider/anthropic): improve object-tool mode

0.0.29

Patch Changes

  • Updated dependencies [b7290943]
    • @ai-sdk/provider@0.0.12
    • @ai-sdk/provider-utils@1.0.2

0.0.28

Patch Changes

  • Updated dependencies [d481729f]
    • @ai-sdk/provider-utils@1.0.1

0.0.27

Patch Changes

  • 7e86b45e: fix (provider/anthropic): automatically trim trailing whitespace on pre-filled assistant responses

0.0.26

Patch Changes

  • 5edc6110: feat (ai/core): add custom request header support
  • Updated dependencies [5edc6110]
  • Updated dependencies [5edc6110]
  • Updated dependencies [5edc6110]
    • @ai-sdk/provider@0.0.11
    • @ai-sdk/provider-utils@1.0.0

0.0.25

Patch Changes

  • 91dc4296: chore (@ai-sdk/anthropic): remove anthropic-beta header

0.0.24

Patch Changes

  • 04800838: fix (@ai-sdk/anthropic): combine tool and user messages, combine system messages

0.0.23

Patch Changes

  • Updated dependencies [02f6a088]
    • @ai-sdk/provider-utils@0.0.16

0.0.22

Patch Changes

  • 0a22b05b: feat (@ai-sdk/anthropic): add claude-3.5-sonnet model

0.0.21

Patch Changes

  • Updated dependencies [85712895]
  • Updated dependencies [85712895]
    • @ai-sdk/provider-utils@0.0.15

0.0.20

Patch Changes

  • 4728c37f: feat (core): add text embedding model support to provider registry
  • 7910ae84: feat (providers): support custom fetch implementations
  • Updated dependencies [7910ae84]
    • @ai-sdk/provider-utils@0.0.14

0.0.19

Patch Changes

  • Updated dependencies [102ca22f]
    • @ai-sdk/provider@0.0.10
    • @ai-sdk/provider-utils@0.0.13

0.0.18

Patch Changes

  • 09295e2e: feat (@ai-sdk/anthropic): automatically download image URLs
  • Updated dependencies [09295e2e]
  • Updated dependencies [09295e2e]
  • Updated dependencies [043a5de2]
    • @ai-sdk/provider@0.0.9
    • @ai-sdk/provider-utils@0.0.12

0.0.17

Patch Changes

  • f39c0dd2: feat (provider): implement toolChoice support
  • Updated dependencies [f39c0dd2]
    • @ai-sdk/provider@0.0.8
    • @ai-sdk/provider-utils@0.0.11

0.0.16

Patch Changes

  • 24683b72: fix (providers): Zod is required dependency
  • Updated dependencies [8e780288]
    • @ai-sdk/provider@0.0.7
    • @ai-sdk/provider-utils@0.0.10

0.0.15

Patch Changes

  • Updated dependencies [6a50ac4]
  • Updated dependencies [6a50ac4]
    • @ai-sdk/provider@0.0.6
    • @ai-sdk/provider-utils@0.0.9

0.0.14

Patch Changes

  • 06e3934: feat (provider/anthropic): streaming tool calls

0.0.13

Patch Changes

  • Updated dependencies [0f6bc4e]
    • @ai-sdk/provider@0.0.5
    • @ai-sdk/provider-utils@0.0.8

0.0.12

Patch Changes

  • Updated dependencies [325ca55]
    • @ai-sdk/provider@0.0.4
    • @ai-sdk/provider-utils@0.0.7

0.0.11

Patch Changes

  • 5b01c13: feat (ai/core): add system message support in messages list

0.0.10

Patch Changes

  • Updated dependencies [276f22b]
    • @ai-sdk/provider-utils@0.0.6

0.0.9

Patch Changes

  • Updated dependencies [41d5736]
    • @ai-sdk/provider@0.0.3
    • @ai-sdk/provider-utils@0.0.5

0.0.8

Patch Changes

  • Updated dependencies [56ef84a]
    • @ai-sdk/provider-utils@0.0.4

0.0.7

Patch Changes

  • 25f3350: ai/core: add support for getting raw response headers.
  • Updated dependencies [d6431ae]
  • Updated dependencies [25f3350]
    • @ai-sdk/provider@0.0.2
    • @ai-sdk/provider-utils@0.0.3

0.0.6

Patch Changes

  • eb150a6: ai/core: remove scaling of setting values (breaking change). If you were using the temperature, frequency penalty, or presence penalty settings, you need to update the providers and adjust the setting values.
  • Updated dependencies [eb150a6]
    • @ai-sdk/provider-utils@0.0.2
    • @ai-sdk/provider@0.0.1

0.0.5

Patch Changes

  • c6fc35b: Add custom header support.

0.0.4

Patch Changes

  • ab60b18: Simplified model construction by directly calling provider functions. Add create... functions to create provider instances.

0.0.3

Patch Changes

  • 587240b: Standardize providers to offer .chat() method

0.0.2

Patch Changes

  • 2bff460: Fix build for release.

0.0.1

Patch Changes

  • 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
  • Updated dependencies [7b8791d]
    • @ai-sdk/provider-utils@0.0.1