Packages

@ai-sdk/openai

4.0.121 · 17 Nov 2026Apache-2.025.8M / weekRepositoryHomepagenpmAtom feed

Upgrading @ai-sdk/openai From 2.0.141 to 4.0.111

255 releases in betweennotes for 254

Other targets from 2.0.141Newest 2.x2.0.143Latest4.0.121
  1. 2.0.141yours
  2. 2 releases
  3. 3.0.0major
  4. 143 releases
  5. 4.0.0major
  6. 107 releases
  7. 4.0.111target
  8. 60 pre
8+
changes to make
0
advisories fixed
142+
new
153+
fixes

Counted from 254 of 255 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
  • Deprecated4.0.96

Release by release

  1. 4.0.111

    7 Nov 20261 new
    • New

      Add resolveProviderOptions to parse provider options that a model accepts under several providerOptions keys, 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.

  2. 4.0.110

    6 Nov 20264 fixes
    • 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

  3. 4.0.109

    5 Nov 20266 new · 4 fixes
    • New

      Expose customTool through azure.tools for 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 with serverUrl or connectorId; 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), and safetyIdentifier for image models

  4. 4.0.108nothing new or fixed in the note

  5. 4.0.107

    2 Nov 20262 fixes
    • 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 languages and keywords transcription hints as repeated multipart fields instead of silently dropping them. Warn when these REST-only options are supplied to streaming transcription.

  6. 4.0.106

    30 Oct 20262 new
    • 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.

  7. 4.0.105

    29 Oct 20261 new · 2 fixes
    • New

      openai: Send native JSON input and prompt cache keys to Decisions

    • Fixed

      openai: Map top-level reasoning to efforts supported by GPT-5.x models instead of sending unsupported values that OpenAI rejects with a 400. max is now only sent on the Responses API, and GPT-5.6 on Chat Completions sends reasoning_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 reasoning option consistently across providers

  8. 4.0.104

    27 Oct 20262 new · 4 fixes
    • New

      openai: Add GPT-6.1 Terra model support

    • New

      Support streaming transcription with gpt-live-transcribe and gpt-transcribe. For these models the language provider option is sent as a single-entry languages list. gpt-transcribe warns about and omits streaming.delay, which it does not support. gpt-live-transcribe rejects non-streaming transcription, since it has no REST endpoint.

    • Fixed

      openai: Read transcription duration from usage for duration-billed json responses

    • Fixed

      openai: Strip propertyNames schemas that omit type: '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

1 other line we could not sort, mostly version bumps
  • Start v7 pre-release

    4.0.0

171 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.