@ai-sdk/openai
A provider package in the Vercel AI SDK for connecting to OpenAI services. It depends on @ai-sdk/provider and @ai-sdk/provider-utils to handle integration with the OpenAI API.
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)
The core change of version 4.0.123 is declaring language model capabilities by model ID in the model catalog.
Conventional projects can upgrade directly to 4.0.123, but should regression-test whether the models they depend on still work as expected.
This release record contains only this one change and comes with no migration notes or behavior change announcements.
4.0.123 does not change the public API and has no external behavioral semantic changes, so the upgrade is transparent to application developers.
After the refactor, capability information is attached directly to each model ID in the model catalog, forming a structure of "one model ID corresponding to one capability declaration."
This change is a refactor introduced by a single commit, with the commit message "refactor(openai): declare language model capabilities per model ID in the model catalog."
Relying on a range declaration such as ^3.0.0 can automatically pull in the 3.0.145 update without modifying the version constraint.
In strict semantic terms, new model support is closer to MINOR (a feature addition); placing it in a patch is a pragmatic engineering trade-off, because it does not change existing API behavior and does not break caller code.
The release notes do not give specific performance figures or cache hit rate data, so the actual benefit of this patch still depends on the calling pattern and the extent of schema changes.
This patch exposes prompt cache comparison diagnostic information for generation and streaming results.
39 more timeline events
All Facts (20)
@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 upgrade method is to run npm install @ai-sdk/openai@4.0.60.
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%Verified@ai-sdk/openai-compatible is the common compatibility layer for many OpenAI-compatible model services, and changes to its version may affect multiple provider adapter packages at once.
85%VerifiedThe fact that @ai-sdk/amazon-bedrock depends on @ai-sdk/openai does not mean an OpenAI account or key is required, because @ai-sdk/openai encapsulates general-purpose capabilities such as HTTP request handling, streaming response parsing, and tool-calling protocols that are shared across multiple provider packages.
85%VerifiedPatch versions are typically backward compatible and do not introduce breaking changes.
80%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 Vercel AI SDK's unified multi-vendor abstraction layer is implemented based on a Provider plugin mechanism, where each vendor adapter is responsible for converting that vendor's raw HTTP API into the SDK's internal standard LanguageModelV1 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%VerifiedThe @ai-sdk/openai package is responsible for integration with OpenAI models.
75%VerifiedWhen using @ai-sdk/openai at the same time, it is recommended to keep both at matching versions to avoid potential behavioral inconsistencies.
75%Verified@ai-sdk/openai@3.0.121 was released as a patch version, with the core change being the addition of support for the GPT-6.1 Sol model.
90%UnverifiedWhen developers adjust the schema of structured output, the new version can retain previous reasoning content and reuse the prompt cache.
70%UnverifiedVersion 2.0.143 adds a stable request-level text format override mechanism, allowing developers to specify the text format at the level of a single request.
70%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%