@ai-sdk/anthropic
The official provider adapter package in the Vercel AI SDK for connecting to Anthropic Claude models. It adapts the Anthropic API to the unified interface of the AI SDK.
Core Facts
@ai-sdk/provider-utils is responsible for the general-purpose utility functions in the AI SDK for interacting with model providers, including low-level logic such as streaming response parsing, tool call formatting, and error handling.
@ai-sdk/provider defines unified TypeScript interfaces such as LanguageModelV1 and EmbeddingModelV1, allowing upper-layer applications to remain unaware of the underlying vendor implementation details.
@ai-sdk/vue is a high-level wrapper for the Vue framework, with underlying dependencies on the ai core package and @ai-sdk/provider-utils.
Timeline (last 90 days)
Commit `13b242c` performs capability calibration for `@ai-sdk/anthropic`: converting rejected budget thinking into adaptive thinking (covering Opus 4.7, Opus 4.8, Opus 5 and Sonnet 5), and verifying effort levels and fast-mode support.
The Anthropic package hides the model IDs for Opus 4.0, Opus 4.1, and Sonnet 4.0 from the public catalog while retaining their request settings.
The IDs of Anthropic's Opus 4.0, Opus 4.1, and Sonnet 4.0 are hidden from the public catalog, but request settings are still retained, and the release notes acknowledge that the capabilities of these historical models cannot be re-verified and may be outdated.
@ai-sdk/anthropic@4.0.113 corrected the support status of sampling, compaction, task-budget, inference-geography, and mid-conversation system messages, and added limitation notes on computer protocol and structured output.
@ai-sdk/anthropic@4.0.113 converts rejected budget thinking into adaptive thinking for Opus 4.7, Opus 4.8, Opus 5, and Sonnet 5.
The changelog for @ai-sdk/anthropic@4.0.108 does not elaborate on the specific change details.
The AI SDK's core package `ai` provides unified APIs such as `generateText` and `streamText`, and each provider corresponds to an independent adapter package, such as `@ai-sdk/openai`, `@ai-sdk/anthropic` and `@ai-sdk/xai`.
The AI SDK includes built-in adapters for multiple model providers such as OpenAI, Anthropic, and Google, so developers only need to switch the provider to change the underlying model.
The ai package is a high-level wrapper for the application layer, exposing APIs such as generateText and streamText that developers call directly.
All concrete provider packages (such as @ai-sdk/openai, @ai-sdk/anthropic, @ai-sdk/xai) must implement the interfaces declared by @ai-sdk/provider, and any enum extension, field addition or removal, or type narrowing in that package propagates to all downstream providers
7 more timeline events
All Facts (17)
@ai-sdk/provider-utils is responsible for the general-purpose utility functions in the AI SDK for interacting with model providers, including low-level logic such as streaming response parsing, tool call formatting, and error handling.
90%Verified@ai-sdk/provider defines unified TypeScript interfaces such as LanguageModelV1 and EmbeddingModelV1, allowing upper-layer applications to remain unaware of the underlying vendor implementation details.
90%Verified@ai-sdk/vue is a high-level wrapper for the Vue framework, with underlying dependencies on the ai core package and @ai-sdk/provider-utils.
90%VerifiedThe AI SDK adopts a Provider architecture in which each Provider package implements standardized interfaces such as LanguageModelV1, which is an engineering practice of the strategy pattern.
90%VerifiedThe Vercel AI SDK (now renamed AI SDK) is an open-source AI development toolkit launched by Vercel that provides TypeScript developers with a unified interface for calling models from multiple AI providers including OpenAI, Anthropic, and Google Gemini.
90%VerifiedIn AI SDK, @ai-sdk/voyage wraps the Voyage AI service into an interface consistent with providers such as OpenAI and Cohere, enabling developers to call different vendors' vector models with a unified embed/embedMany
80%VerifiedWithin the AI SDK ecosystem, there exists an adapter package @ai-sdk/zod similar to @ai-sdk/valibot, with both providing the same public interface.
80%VerifiedThe AI SDK's core package `ai` provides unified APIs such as `generateText` and `streamText`, and each provider corresponds to an independent adapter package, such as `@ai-sdk/openai`, `@ai-sdk/anthropic` and `@ai-sdk/xai`.
75%VerifiedAll concrete provider packages (such as @ai-sdk/openai, @ai-sdk/anthropic, @ai-sdk/xai) must implement the interfaces declared by @ai-sdk/provider, and any enum extension, field addition or removal, or type narrowing in that package propagates to all downstream providers
75%Partially VerifiedThe IDs of Anthropic's Opus 4.0, Opus 4.1, and Sonnet 4.0 are hidden from the public catalog, but request settings are still retained, and the release notes acknowledge that the capabilities of these historical models cannot be re-verified and may be outdated.
90%Partially Verified@ai-sdk/anthropic@4.0.113 converts rejected budget thinking into adaptive thinking for Opus 4.7, Opus 4.8, Opus 5, and Sonnet 5.
90%UnverifiedThe AI SDK includes built-in adapters for multiple model providers such as OpenAI, Anthropic, and Google, so developers only need to switch the provider to change the underlying model.
70%UnverifiedThe ai package is a high-level wrapper for the application layer, exposing APIs such as generateText and streamText that developers call directly.
70%UnverifiedThe Anthropic package hides the model IDs for Opus 4.0, Opus 4.1, and Sonnet 4.0 from the public catalog while retaining their request settings.
70%UnverifiedCommit `13b242c` performs capability calibration for `@ai-sdk/anthropic`: converting rejected budget thinking into adaptive thinking (covering Opus 4.7, Opus 4.8, Opus 5 and Sonnet 5), and verifying effort levels and fast-mode support.
50%Unverified@ai-sdk/anthropic@4.0.113 corrected the support status of sampling, compaction, task-budget, inference-geography, and mid-conversation system messages, and added limitation notes on computer protocol and structured output.
50%UnverifiedThe changelog for @ai-sdk/anthropic@4.0.108 does not elaborate on the specific change details.
50%