@ai-sdk/openai
4.0.108 · 3 Nov 2026Apache-2.022M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/openai From 3.0.25 to 4.0.108
215 releases in betweennotes for 214
Reading releases, release notes and advisories…
- 7+
- changes to make
- 0
- advisories fixed
- 84+
- new
- 105+
- fixes
Counted from 214 of 215 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- breaking4.0.0
- breaking4.0.0
- breaking4.0.0
- breaking4.0.0
- breaking4.0.0
- breaking4.0.0
- deprecated4.0.96
Release by release
4.0.108nothing new or fixed in the note
- fixed
openai: Preserve valid JSON string tool arguments and serialize BigInt and cycles in tool calls and results, retaining malformed argument replay fallbacks
- fixed
Forward
languagesandkeywordstranscription hints as repeated multipart fields instead of silently dropping them. Warn when these REST-only options are supplied to streaming transcription.
- fixed
- new
Support promises and synchronous or asynchronous callbacks in provider API key and token settings. Resolve credentials per authenticated request while preserving existing authentication behavior and synchronous credential serialization.
- new
Introduce a model entry contract with named capability sections and request configuration. Consolidate the OpenAI and Anthropic model catalogs so existing request behavior and generated capability documentation use the same source of truth. Catalogs also declare the provider options each provider accepts and which models support them.
- new
- new
openai: Send native JSON input and prompt cache keys to Decisions
- fixed
openai: Map top-level
reasoningto efforts supported by GPT-5.x models instead of sending unsupported values that OpenAI rejects with a 400.maxis now only sent on the Responses API, and GPT-5.6 on Chat Completions sendsreasoning_effort: 'none'when function tools are used, since it rejects function tools with reasoning. A warning is emitted when a reasoning level was requested. - fixed
Map the top-level
reasoningoption consistently across providers
- new
- new
openai: Add GPT-6.1 Terra model support
- new
Support streaming transcription with
gpt-live-transcribeandgpt-transcribe. For these models thelanguageprovider option is sent as a single-entrylanguageslist.gpt-transcribewarns about and omitsstreaming.delay, which it does not support.gpt-live-transcriberejects non-streaming transcription, since it has no REST endpoint. - fixed
openai: Read transcription duration from
usagefor duration-billedjsonresponses - fixed
openai: Strip
propertyNamesschemas that omittype: 'string'(e.g. Zod 3 records with constrained keys) instead of throwing an unsupported functionality error - fixed
openai: Report unfinished web searches as tool errors
- fixed
openai: Only send transcription response format and timestamp defaults when needed
- new
- new
Add azure.tools.toolSearch and support azure provider options on responses function tools
- fixed
Fix string interpolation in Amazon Bedrock unsupported provider tool warnings and OpenAI / OpenAI-compatible completion errors for unexpected system messages.
- new
- fixed
Fix non-streaming Responses API structured output failing when multiple assistant messages contain JSON. Providers can supply separate structured-output text for parsing, allowing OpenAI and Azure Responses models to select the last
final_answerwhile preserving all generated content, annotations, conversation history, and token usage.
- fixed
4.0.101nothing new or fixed in the note
1 other line we could not sort, mostly version bumps
- 4.0.0
Start v7 pre-release
135 internal lines (docs, tests, tooling) left out.