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. 4.x · latest line
  2. 4.0.4 – 4.0.52 releases that only update dependencies@ai-sdk/provider-utils 5.0.3@ai-sdk/provider 4.0.1Show each
  3. 4.0.3

    29 Jun 2026
    • Return a helpful error when the Responses stream parser receives Chat Completions chunks.

  4. 4.0.2

    27 Jun 2026

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

  5. 4.0.1

    27 Jun 2026
    • openai: Add support for web_search_call.results include option

  6. 4.0.0

    25 Jun 2026
    • breaking

      ai: Add support for uploading provider skills using the provider references abstraction

    • breaking

      Remove CommonJS exports from all packages. All packages are now ESM-only ("type": "module"). Consumers using require() must switch to ESM import syntax.

    • breaking

      provider: Add support for provider references and uploading files as supported per provider

  7. 3.x
  8. 3.0.136

    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.

  9. 3.0.135

    29 Oct 2026

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

  10. 3.0.134

    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.

  11. 3.0.133

    27 Oct 2026
    • openai: Add GPT-6.1 Terra model support

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

  12. 3.0.132

    26 Oct 2026
    • Add azure.tools.toolSearch and support azure provider options on responses function tools

  13. 3.0.131

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

    • openai: Support 12h prompt cache writes and cache prewarming

  14. 3.0.130

    16 Oct 2026

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

  15. 3.0.129

    15 Oct 2026
    • Restore raw OpenAI custom-tool input deltas for consumers that forward them to Responses API clients. Mark streamed input with inputEncoding: 'text' so UI clients can display it progressively without JSON parsing. Preserve the encoding when partial UI messages are saved and resumed. Final provider tool-call inputs remain JSON-encoded.

  16. 3.0.128

    15 Oct 2026

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

  17. 3.0.127

    13 Oct 2026
    • openai: Send assistant text with content instead of an item reference when its 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". Assistant text parts are now only sent as item references, or with their item id, when they are preceded by reasoning in the same assistant message.

  18. 3.0.126

    12 Oct 2026
    • openai: JSON-encode custom tool input deltas for progressive UI updates

  19. 3.0.125

    9 Oct 2026
    • openai: Replay web search results when response storage is disabled

    • openai: Classify Responses stream errors with null codes

  20. 3.0.124

    1 Oct 2026
    • openai: Rewrite recursive Zod schemas that use allOf wrappers

  21. 3.0.123

    30 Sep 2026
    • openai: Add support for ultrafast service tier

  22. 3.0.122

    30 Sep 2026

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

  23. 3.0.121

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

  24. 3.0.120

    28 Sep 2026
    • provider-utils: Preserve streamed tool calls with unreliable IDs and indices

  25. 3.0.118

    24 Sep 2026
    • The OpenAI Responses provider now accepts providerOptions.openai.reasoningEffortUpdate on empty system messages and sends each update at its position in the conversation. This lets applications change reasoning effort during a conversation while preserving the prompt prefix for caching.

  26. 3.0.117

    23 Sep 2026
    • openai: Expose Chat Completions audio transcripts as generated text

    • openai: Preserve retryability for early stream errors

  27. 3.0.116

    23 Sep 2026
    • openai: Accept incomplete function_call and custom_tool_call items on the Responses stream, so a call truncated by max_output_tokens finishes with length instead of a TypeValidationError

    • GPT-6 Sol and Luna model IDs

  28. 3.0.115

    21 Sep 2026

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

  29. 3.0.114

    18 Sep 2026
    • openai: Preserve provider file references in Responses tool results

  30. 3.0.113

    16 Sep 2026
    • openai: Report apply patch responses with a tool-calls finish reason

  31. 3.0.112

    9 Sep 2026
    • openai: Return an AI SDK error for empty chat completion choices

  32. 3.0.111

    9 Sep 2026
    • Include explicit message item types in Azure AI Foundry Responses requests.

    • openai: Add GPT Image 2.5 Flare and Sunburst model IDs

  33. 3.0.110

    8 Sep 2026
    • openai: Add async tool calling

    • Add xhigh and max quality support for GPT Image 2.5 Flare and Sunburst in image generation, image editing, and the Responses API image generation tool.

  34. 3.0.109

    5 Sep 2026
    • openai: Add GPT-6 reasoning configuration updates

  35. 3.0.108

    4 Sep 2026
    • openai: Add support for the gpt-6-astra

  36. 3.0.107

    3 Sep 2026
    • openai: Flatten mid-stream Responses error events

    • openai: Preserve complete Responses API raw usage objects

  37. 3.0.106

    31 Aug 2026
    • Preserve explicit prompt cache breakpoints on scalar Responses tool results.

  38. 3.0.105

    30 Aug 2026

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

  39. 3.0.104

    26 Aug 2026
    • Normalize non-object replayed Chat Completions tool arguments to empty objects.

    • Fix Responses history serialization for regular functions named tool_search.

  40. 3.0.102

    26 Aug 2026
    • Signal schema-invalid known Responses stream events and preserve the error finish reason.

  41. 3.0.101

    25 Aug 2026
    • Prevent negative text output token counts when providers report reasoning tokens. Perplexity reasoning tokens are now treated as separate from completion tokens.

  42. 3.0.100

    24 Aug 2026

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

  43. 3.0.99

    20 Aug 2026
    • openai: Expand internal parallel tool call wrappers from the Responses API while preserving stateful continuation and streaming fallbacks

  44. 3.0.98

    19 Aug 2026
    • openai: Support built-in and provider-defined tools in the Responses allowedTools option

      allowedTools emitted every allow-list entry as { type: 'function', name }, but OpenAI identifies
      built-in tools by type. Allow-listing a declared provider-defined tool (web search, image generation,
      MCP, custom, ...) therefore failed with Tool choice '<name>' not found in 'tools' parameter. Entries
      are now derived from the declared tool, including the MCP server label and custom tool name.

      Tools that OpenAI cannot allow-list (the tool search tool, deferred tools, and namespaced tools) are
      dropped from the allow-list with a warning, and an error is thrown if that would leave the allow-list
      empty rather than silently sending an unrestricted request.

      Ambiguous names are now reported instead of resolved silently. A name that matches both a declared tool
      and another tool's provider tool name resolves to the declared tool and warns; a provider tool name
      shared by several tools in the same request (two MCP servers, for example) is dropped with a warning.
      A name that matches no declared tool keeps its existing behavior and is now warned about.

  45. 3.0.97

    14 Aug 2026

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

  46. 3.0.96

    12 Aug 2026
    • Reconstruct provider-executed shell calls when continuing OpenAI Responses with storage disabled.

  47. 3.0.95

    12 Aug 2026
    • Avoid duplicate MCP approval request references when continuing stored OpenAI Responses.

  48. 3.0.94

    11 Aug 2026
    • Keep client-executed function calls paired with their outputs when chaining OpenAI Responses with a previous response ID.

  49. 3.0.93

    11 Aug 2026
    • Accept serviceTier: 'fast' on OpenAI chat and responses models. OpenAI renamed priority processing to Fast mode and accepts service_tier: 'fast' and 'priority' interchangeably, so 'fast' is now passed through verbatim and gated on the same model capability as 'priority'.

  50. 3.0.92

    10 Aug 2026

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