Packages

@ai-sdk/openai

4.0.108 · 3 Nov 2026Apache-2.022M / weekRepositoryHomepagenpmAtom feed

Your version

523 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 3.x
  2. 3.0.38 – 3.0.403 releases with no change for you2 dependency updates, 1 maintenance@ai-sdk/provider-utils 4.0.18Show each
  3. 3.0.37

    28 Feb 2026
    • provider/openai: Support custom tools with alias mapping

  4. 3.0.36

    26 Feb 2026
    • openai: Allow null/undefined type in streaming tool call deltas

      Azure AI Foundry and Mistral deployed on Azure omit the type field in
      streaming tool_calls deltas. The chat stream parser now accepts a missing
      type field (treating it as "function") instead of throwing
      InvalidResponseDataError: Expected 'function' type.

      Fixes #12770

  5. 3.0.35

    26 Feb 2026
    • openai: Include reasoning parts without itemId when encrypted_content is present

      When providerOptions.openai.itemId is absent on a reasoning content part,
      the converter now uses encrypted_content as a fallback instead of silently
      skipping the part with a warning. The OpenAI Responses API accepts reasoning
      items without an id when encrypted_content is supplied, enabling
      multi-turn reasoning even when item IDs are stripped from provider options.

      Also makes the id field optional on the OpenAIResponsesReasoning type to
      reflect that the API does not require it.

      Fixes #12853

  6. 3.0.34

    26 Feb 2026
    • Support phase parameter on Responses API message items. The phase field ('commentary' or 'final_answer') is returned by models like gpt-5.3-codex on assistant message output items and must be preserved when sending follow-up requests. The phase value is available in providerMetadata.openai.phase on text parts and is automatically included on assistant messages sent back to the API.

  7. 3.0.33

    24 Feb 2026
    • Added missing model IDs to OpenAIChatModelId, OpenAIResponsesModelId, OpenAIImageModelId, OpenAISpeechModelId, OpenAITranscriptionModelId, and OpenAICompletionModelId types for better autocomplete support.

  8. 3.0.32

    24 Feb 2026
    • provider/openai: Add gpt-5.3-codex

  9. 3.0.31

    23 Feb 2026
    • openai: Change web search tool action to be optional

  10. 3.0.30

    18 Feb 2026
    • provider/openai: Support native skills and hosted shell

  11. 3.0.29

    13 Feb 2026
    • Differentiate text vs image input tokens

  12. 3.0.28

    12 Feb 2026

    Only updates a dependency:@ai-sdk/provider-utils 4.0.15

  13. 3.0.27

    11 Feb 2026
    • Normalize provider specific model options type names and ensure they are exported

  14. 3.0.20 – 3.0.267 releases with no change for you5 dependency updates, 2 maintenance@ai-sdk/provider 3.0.8@ai-sdk/provider-utils 4.0.14Show each
  15. 3.0.19

    26 Jan 2026
    • Provide Responses API providerMetadata types at the message / reasoning level.

  16. 3.0.17

    22 Jan 2026
    • openai: Preserve tool id for apply patch tool

  17. 3.0.15 – 3.0.162 maintenance releases: docs, tests or toolingShow each
    • 3.0.1622 Jan 2026docs, tests or tooling
    • 3.0.1522 Jan 2026docs, tests or tooling
  18. 3.0.14

    21 Jan 2026
    • openai: Add o4-mini model to OpenAIChatModelId type

  19. 3.0.13

    20 Jan 2026
    • openai: Filter duplicate items when passing conversationID

  20. 3.0.9 – 3.0.124 releases that only update dependencies@ai-sdk/provider 3.0.4@ai-sdk/provider-utils 4.0.8Show each
  21. 3.0.8

    12 Jan 2026
    • Fix Responses code_interpreter annotations and add typed providerMetadata

  22. 3.0.7

    6 Jan 2026
    • openai/azure: Passing response_format correctly

  23. 3.0.6

    6 Jan 2026
    • Fix handling of image-url tool result content type in OpenAI Responses API conversion

  24. 3.0.4 – 3.0.52 releases that only update dependencies@ai-sdk/provider 3.0.2@ai-sdk/provider-utils 4.0.4Show each
  25. 3.0.3

    5 Jan 2026
    • azure: Allow 'azure' as a key for providerOptions

  26. 3.0.2

    30 Dec 2025
    • Trigger release to update @latest

  27. 3.0.1

    23 Dec 2025
    • Add MCP tool approval

  28. 3.0.0

    22 Dec 2025
    • breaking

      Ai SDK 6 beta

    • provider: Add specificationVersion to ProviderV3

    • Fix the "incomplete_details" key from nullable to nullish for openai compatibility

  29. 2.x
  30. 2.0.140

    3 Nov 2026
    • openai: Preserve valid JSON string tool arguments and serialize BigInt and cycles in tool calls and results, retaining malformed argument replay fallbacks

    • Forward languages and keywords transcription hints as repeated multipart fields instead of silently dropping them.

  31. 2.0.139

    30 Oct 2026

    Only updates a dependency:@ai-sdk/provider-utils 3.0.43

  32. 2.0.138

    27 Oct 2026
    • openai: Report unfinished web searches as tool errors

    • Report failed and incomplete web searches as tool errors instead of successful tool results in OpenAI Responses API calls.

  33. 2.0.137

    27 Oct 2026
    • Fix gpt-transcribe REST transcription. Requests with OpenAI provider options now use response_format: 'json' for gpt-transcribe and dated gpt-4o-mini-transcribe snapshots, which reject verbose_json. durationInSeconds is read from usage.seconds when a duration-billed response has no top-level duration.

  34. 2.0.136

    21 Oct 2026
    • Defer validation schema construction until first use to reduce provider import time.

  35. 2.0.135

    13 Oct 2026
    • openai: Send assistant text and function calls with content instead of an item reference when their reasoning was removed

      With reasoning models, pruning reasoning (e.g. pruneMessages({ reasoning: 'all' })) caused follow-up requests to fail with "Item 'msg*...' of type 'message' was provided without its required 'reasoning' item" or "Item 'fc*...' of type 'function_call' was provided without its required 'reasoning' item". Assistant text and function call parts are now only sent as item references, or with their item id, when they are preceded by reasoning in the same assistant message.

  36. 2.0.134

    12 Oct 2026
    • openai: Replay web search results, including tools with custom names, when response storage is disabled

  37. 2.0.133

    30 Sep 2026

    Only updates a dependency:@ai-sdk/provider-utils 3.0.41

  38. 2.0.132

    30 Sep 2026
    • openai: Add GPT-6.1 Sol model support