@ai-sdk/openai
4.0.121 · 17 Nov 2026Apache-2.025.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/openai From 1.3.24 to 4.0.111
395 releases in betweennotes for 393
- 12+
- changes to make
- 0
- advisories fixed
- 178+
- new
- 211+
- fixes
Counted from 393 of 395 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
- Breaking3.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
Release by release
- New
Add
resolveProviderOptionsto parse provider options that a model accepts under severalproviderOptionskeys, either as aliases (first) or merged in order (merge), and use it for the existing multi-key lookups in the OpenAI, OpenAI-compatible, Anthropic, Google, and Amazon Bedrock models. Resolution behavior for these models is unchanged.
- New
- Fixed
Refactor Azure model ID logic into a model catalog that declares capabilities and provider options, and generate provider capability documentation from it. Export the OpenAI catalog internally for Azure to reuse. Request behavior is unchanged.
- Fixed
openai: Surface Chat Completions refusals as text content
- Fixed
openai,openai-compatible: Surface refusal logprobs and openai-compatible refusals
- Fixed
openai: Handle refusal content parts in the Responses API
- Fixed
- New
Expose
customToolthroughazure.toolsfor Azure Responses models, sharing the OpenAI custom tool factory and its raw string input support. - New
Add memoryLimit and networkPolicy properties in codeInterpreter tool
- New
Add Secure MCP tunnel support to the OpenAI MCP tool via
tunnelId. Tunnel targets cannot be combined withserverUrlorconnectorId; existing URL and connector configurations remain compatible. - New
openai: Support GPT Image 2.6 models with
complexity, markup-guided edits (markup), animated GIF output (outputFormat: 'gif',frameCount,frameDurationMs), andsafetyIdentifierfor image models
- New
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
1 other line we could not sort, mostly version bumps
- 4.0.0
Start v7 pre-release
239 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.