unstale

npm / openai

openai

What changed in openai 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-04.

33 breaking22 security6 deprecations219 new APIs and options4 performance21 behavior and defaults2 tooling142 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

openai 7266 changes

Breaking changes 13

  • Types for Agents, Live, Images, and admin APIs were updated; developers may need to adjust code that uses those types.

    7.57.0release notes

  • Delegation tools and choices have expanded; exhaustive TypeScript switches may need to handle new variants.

    7.48.0release notes

  • The item is now a union that can include messages and function/custom-tool calls and outputs; narrow before accessing message fields.

    7.44.0release notes

  • This image model was shut down; replace explicit selections with gpt-image-2.5-sunburst or gpt-image-2.5-flare.

    7.44.0release notes

  • DecisionInputMessage is now a union; code extending or implementing the former interface must use DecisionInputMessage.DecisionInputUserMessage instead.

    7.43.0release notes

  • Turns compression off by default.

    7.40.0release notes

  • Streaming runTools now rejects unfinished turns.

    7.17.0release notes

  • WebSocket constructors for the Responses API now reject function-based API keys.

    7.17.0release notes

  • Rejects incomplete float32 vectors.

    7.11.0release notes

  • Responses WebSockets no longer follow redirects.

    7.9.0release notes

  • Hardens structured-output handling against format downgrade and preserves chat response-format integrity; Zod support is limited to provably JSON-native structured outputs.

    7.6.0release notes

  • Blocks custom credential headers on redirects.

    7.6.0release notes

  • The SDK now requires Node.js 22 and codifies version support, so developers must use Node.js 22 or later.

    7.0.0release notes

Security 18

  • Safely decodes filenames inferred from URLs during uploads.

    7.30.1release notes

  • Callback credentials are kept local to each HTTP request.

    7.16.0release notes

  • WebSocket error messages from the Responses API are formatted safely.

    7.16.0release notes

  • Validates Azure metadata access token values.

    7.11.0release notes

  • First-class X.509 workload credentials are secured.

    7.8.0release notes

  • Rejects run-step identity hijacking before tool callbacks.

    7.6.0release notes

  • Redacts sensitive or malformed payloads from stream diagnostics and prevents sensitive assistant stream data from being retained or leaked.

    7.6.0release notes

  • Bounds SDK event streams and SSE/NDJSON buffering, validates streamed item identities, and rejects malformed Realtime WebSocket frames and named SSE provider error events.

    7.6.0release notes

  • Azure API keys are no longer disclosed across HTTP redirects.

    7.5.0release notes

  • Azure deployment path traversal is prevented.

    7.5.0release notes

  • Bedrock bearer credentials are no longer disclosed across redirects.

    7.5.0release notes

  • Bedrock credentials are contained to the configured endpoint origin.

    7.5.0release notes

  • Prototype manipulation in streamed chat snapshots is prevented.

    7.5.0release notes

  • Multipart upload content-type header injection is prevented.

    7.5.0release notes

  • runTools is hardened against inherited function names.

    7.5.0release notes

  • Streaming upload filename and header injection is prevented.

    7.5.0release notes

  • Redirects are rejected during workload identity token exchange.

    7.5.0release notes

  • Unsafe workload-identity token expirations are rejected.

    7.5.0release notes

Deprecations 3

  • Adds shutdown notices for GPT-4 model aliases, which developers may need to account for when choosing models.

    7.37.0release notes

  • Deprecates connector_id for MCP.

    7.19.0release notes

  • The Sora video APIs are deprecated.

    7.5.0release notes

New APIs and options 123

  • Adds Live MCP server configuration.

    7.60.0release notes

  • Adds standalone CSAM moderation types.

    7.60.0release notes

  • Added the GPT-6.2 Astra model identifier.

    7.58.0release notes

  • Added the GPT-6.2 Astra Law Responses model identifier.

    7.58.0release notes

  • Added the GPT-6.2 Sol model identifier.

    7.58.0release notes

  • Responses background windows now include 2-hour and 8-hour options.

    7.58.0release notes

  • Schedule pause reasons have been added.

    7.58.0release notes

  • Adds typed async function tools to the API, allowing developers to use typed asynchronous function tools.

    7.55.0release notes

  • The SDK recognizes gpt-6-rosalind in beta Responses.

    7.54.0release notes

  • Responses now accepts a model option, allowing developers to specify the model for a Responses request.

    7.52.0release notes

  • Agent turn errors and image and audio options were expanded.

    7.51.0release notes

  • Australia, India, and Japan residency options were added.

    7.51.0release notes

  • GPT-6 Rosalind was added to the model catalog.

    7.51.0release notes

  • Image complexity and GIF and SVG output controls were added.

    7.51.0release notes

  • Adds 12-hour Responses caching and cache-write usage.

    7.50.0release notes

  • Adds project service tier settings.

    7.50.0release notes

  • Adds workload identity providers and federation rules to the API.

    7.49.0release notes

  • Adds typed support for Responses WebSocket warmup.

    7.47.0release notes

  • Adds settings for agent context compaction.

    7.46.0release notes

  • Adds metadata filtering for agent sessions.

    7.46.0release notes

  • Adds agent session review and tool settings.

    7.46.0release notes

  • Adds experimental agent time awareness.

    7.46.0release notes

  • Exposes hosted tool usage in responses.

    7.46.0release notes

  • Adds markup overlays for image edits.

    7.46.0release notes

  • Adds organization external key management.

    7.46.0release notes

  • Adds SIP DTMF commands and delivery events.

    7.46.0release notes

  • Adds typed Realtime references and improves WebSocket delivery.

    7.46.0release notes

  • Adds the gpt-6.1-terra model identifier for use with the API.

    7.45.0release notes

  • Adds delegation controls, prompt cache lifetimes, scheduled automations, invocation endpoints, and the automations agent-tool variant.

    7.44.0release notes

  • Decisions request inputs accept new message roles and tool-history items, so code must not assume it knows every input type.

    7.43.0release notes

  • A Live response's Decisions question instructions can now be a string or an array of text, image, or JSON parts; code must handle both cases.

    7.43.0release notes

  • Adds voice deletion to the API.

    7.42.0release notes

  • The Responses API now supports Vertex AI.

    7.41.0release notes

  • Adds 30-minute cache-write usage counts to the API.

    7.40.0release notes

  • Adds compaction trigger IDs to the API.

    7.40.0release notes

  • Adds API support for managing custom voice consent.

    7.40.0release notes

  • Adds opt-in bounded connection recovery for realtime connections.

    7.39.0release notes

  • Adds typed Live sideband events for developers using the API.

    7.38.0release notes

  • Adds a degraded status for external storage.

    7.37.0release notes

  • Image requests and responses now support safety identifiers.

    7.36.0release notes

  • Live sessions can now play audio fixtures.

    7.35.0release notes

  • Adds support for using Decisions in Live sessions.

    7.35.0release notes

  • Adds prompt caching options for Decisions, giving developers more control over prompt caching.

    7.35.0release notes

  • Adds support for updating project API key scopes.

    7.35.0release notes

  • Adds support for creating voices from prompts.

    7.35.0release notes

  • Adds response error diagnostics and model notices.

    7.35.0release notes

  • Adds options for regional processing residency, allowing developers to configure where processing occurs.

    7.34.0release notes

  • Adds beta session spending limits.

    7.33.0release notes

  • Adds billing_not_active as a session error code.

    7.33.0release notes

  • Adds browser and computer toolsets for developers to use.

    7.33.0release notes

  • Adds support for image URLs and detailed safety alert explanations.

    7.33.0release notes

  • Adds support for OCI as an external-storage provider.

    7.33.0release notes

  • Adds organization Decisions usage reporting.

    7.33.0release notes

  • Adds support for updating project API key expiry.

    7.33.0release notes

  • Adds shida to the named Live voices.

    7.33.0release notes

  • Adds vault updates and metadata filters.

    7.33.0release notes

  • Adds agent environment suspension and expiration.

    7.32.0release notes

  • Adds support for prewarmed hosted environments.

    7.31.0release notes

  • Adds standalone Decisions support to the API.

    7.30.0release notes

  • Typed function helpers support tool search with defer_loading=true.

    7.29.0release notes

  • Agents can observe local tool failures.

    7.29.0release notes

  • Adds support for agent session events.

    7.28.0release notes

  • Adds support for custom voice creation.

    7.28.0release notes

  • Agents can prepare hosted files.

    7.27.0release notes

  • Agents can download result artifacts.

    7.27.0release notes

  • Adds the ability to list agent session traces.

    7.26.0release notes

  • Beta Agents streams can collect their final output.

    7.26.0release notes

  • Typed application functions can be bound to Agents tools.

    7.26.0release notes

  • Agent streams can parse typed output.

    7.26.0release notes

  • Adds credential and session options for Agents.

    7.24.0release notes

  • Adds Cyber access programs to Responses.

    7.24.0release notes

  • Adds the GPT-6.1 Sol model identifier.

    7.24.0release notes

  • Adds a dedicated Node translation WebSocket.

    7.24.0release notes

  • Adds client secret creation for Realtime Translation.

    7.24.0release notes

  • Adds opt-in incremental output snapshots over WebSocket.

    7.24.0release notes

  • Adds support for GCP external storage.

    7.23.0release notes

  • Adds the GPT-Rosalind research model.

    7.23.0release notes

  • Adds the GPT-6 Luna model identifier for developers to use when selecting a model.

    7.22.0release notes

  • Adds the GPT-6 Sol model identifier for developers to use when selecting a model.

    7.22.0release notes

  • Adds session environment reset events.

    7.21.0release notes

  • Adds support for environment-variable vault credentials.

    7.20.0release notes

  • Adds API support for managing external storage configurations.

    7.20.0release notes

  • Adds support for retrieving safety cases.

    7.20.0release notes

  • Adds webhook events for safety warnings and deactivation.

    7.20.0release notes

  • Adds SIP media security information to incoming call events.

    7.20.0release notes

  • Adds API support for managing webhook endpoints.

    7.19.0release notes

  • Adds model settings for agent sessions.

    7.18.0release notes

  • Adds audio-mini model choices.

    7.18.0release notes

  • Adds managed WebSocket sessions for Responses.

    7.18.0release notes

  • Adds prompt-cache prewarming.

    7.18.0release notes

  • Adds compaction progress events so developers can track progress during compaction.

    7.17.0release notes

  • WebSocket iterators can have per-iterator limits on incoming events.

    7.16.0release notes

  • Adds the Agents API to the SDK.

    7.15.0release notes

  • Adds the Live API to the OpenAI Node SDK.

    7.14.0release notes

  • Adds controls for API key expiration.

    7.13.0release notes

  • Adds GPT Image 2.5 models and image options for use through the API.

    7.12.0release notesrelease notes

  • Adds prompt cache diagnostics to the API, making cache information available to developers.

    7.11.0release notes

  • Adds expiration fields for service-account API keys.

    7.11.0release notes

  • The SDK adds gpt-6-astra and related features.

    7.10.0release notes

  • Responses and Chat Completions usage now include compute_units.

    7.8.0release notes

  • Adds the obfuscation field to ChatCompletionChunk, making it available to developers consuming chat completion chunks.

    7.6.0release notes

  • Adds support for named data-residency endpoints.

    7.6.0release notes

  • Adds support for backend-mediated Realtime WebRTC calls.

    7.6.0release notes

  • Adds project residency and usage quantity_unit fields to the API types.

    7.6.0release notes

  • Adds pinned X.509 workload token exchange and integrates attested X.509 workload identity into clients.

    7.6.0release notes

  • AzureClientOptions is exported for developers to use.

    7.5.0release notes

  • The SDK adds support for Bedrock Runtime endpoints, allowing developers to use the SDK with those endpoints.

    7.5.0release notes

  • A new Daybreak model identifier is available for use with the API.

    7.5.0release notes

  • A new gpt-5.6-cyber model identifier is available for use with the API.

    7.5.0release notes

  • An ImageDetail type is added to the SDK API.

    7.5.0release notes

  • Workload identity helpers are exported from openai/auth.

    7.5.0release notes

  • Realtime WebSocket connection URLs can now be overridden.

    7.5.0release notes

  • WebSocket events are separated in the API.

    7.5.0release notes

  • A ServiceTier type is added to the SDK API.

    7.5.0release notes

  • The API adds structured errors for MCP.

    7.5.0release notes

  • The API adds an Ultrafast tier.

    7.5.0release notes

  • The API adds structured WebSocket errors.

    7.5.0release notes

  • WebSocket stream IDs are added to the API.

    7.5.0release notes

  • The API adds an event for when a workload identity access token is issued.

    7.5.0release notes

  • Adds the gpt-5.5 model to the API.

    7.4.0release notes

  • Adds tool metadata fields to the API.

    7.4.0release notes

  • Adds content provenance checks to the API.

    7.3.0release notes

  • Adds fast tier support to the API.

    7.2.0release notes

Performance 4

  • Bedrock avoids copying repeated query values, improving performance.

    7.11.0release notes

  • Avoids quadratic comparisons when accumulating long text in Responses.

    7.6.0release notes

  • Quadratic EventStream FIFO draining is eliminated.

    7.5.0release notes

  • Quadratic SSE buffer copying is eliminated.

    7.5.0release notes

Behavior and default changes 11

  • Hides Managed Agents session budget controls and events.

    7.60.0release notes

  • Agent session errors are delivered as stream events, allowing developers to handle them through the stream.

    7.53.0release notes

  • Sparse WebSocket output facts are now retained.

    7.48.0release notes

  • Parses Responses using the latest text format update.

    7.46.0release notes

  • Exposes image tool error and moderation details.

    7.33.0release notes

  • Local tools can run during session creation streams.

    7.29.0release notes

  • Computer use is now available to beta agents.

    7.25.0release notes

  • Usage APIs were updated; developers may need to adjust how they use them.

    7.9.0release notes

  • WebSocket connections now send a default User-Agent.

    7.8.0release notes

  • Function call output no longer requires call IDs, so developers can omit call_id.

    7.7.0release notes

  • Transcription models were updated.

    7.1.0release notes

Tooling 2

  • Managed Agents budget events are now typed.

    7.59.0release notes

  • Reasoning input transformations on responses are now typed, improving type support when working with these transformations.

    7.56.0release notes

Fixes and other changes 92

  • Realtime now honors the selected WebSocket session target.

    7.46.0release notes

  • Adds support for google-auth-library v11 when using Vertex.

    7.45.1release notes

  • Clarifies prompt cache breakpoint TTL behavior, helping developers make decisions about its use.

    7.45.1release notes

  • Clarifies cache-write totals.

    7.40.0release notes

  • Uses named DirectShow inputs on Windows.

    7.40.0release notes

  • Preserves multipart headers.

    7.40.0release notes

  • Preserves option overrides for Realtime and Translation WebSockets.

    7.40.0release notes

  • Refreshes factory URLs for each connection attempt.

    7.40.0release notes

  • Aligns request encoding with response parsing.

    7.40.0release notes

  • Preserves lifecycle state when observers throw.

    7.40.0release notes

  • Preserves large WebSocket messages and receives large realtime messages by default.

    7.40.0release notes

  • Declares Realtime response error messages in the SDK types.

    7.35.0release notes

  • Aligns beta pagination limits and non-null parameters.

    7.33.0release notes

  • Preserves detailed token usage in totalUsage.

    7.32.0release notes

  • Corrects the parameters for custom voice creation.

    7.30.1release notes

  • Structured text is parsed only in final message phases.

    7.30.1release notes

  • Chat Completions now allows the original image detail value.

    7.26.0release notes

  • Corrects the endpoint used to cancel an eval run.

    7.26.0release notes

  • Lane IDs are reserved across WebSocket session replacements.

    7.26.0release notes

  • Credentials are refreshed when a WebSocket reconnects.

    7.26.0release notes

  • Preserves queries on the base URL when joining relative endpoints.

    7.24.0release notes

  • Prevents replay of queued writes whose delivery is uncertain.

    7.24.0release notes

  • Prevents hangs when transcript grouping deadlines are fractional.

    7.24.0release notes

  • Preserves supported streamed logprobs and provisional metadata in Responses.

    7.24.0release notes

  • Preserves model choices and improves request handling.

    7.21.0release notes

  • Preserves request options in legacy GET calls.

    7.20.0release notes

  • Validates WebSocket results and preserves header defaults.

    7.18.0release notes

  • Chat runners now preserve abort reasons.

    7.17.0release notes

  • Realtime handling now preserves native WebSocket error causes.

    7.17.0release notes

  • Strict schemas now omit an impossible optional branch.

    7.17.0release notes

  • Streaming now emits terminal SSE events even when they lack a trailing blank line.

    7.17.0release notes

  • Malformed WebSocket events are handled, and buffering is improved.

    7.16.0release notes

  • Unread events are discarded when an iterator returns.

    7.16.0release notes

  • Rejects root IDs in run-step deltas.

    7.12.0release notes

  • Preserves suppressed workload authorization.

    7.12.0release notes

  • Uses ALSA card identifiers when recording audio.

    7.11.0release notes

  • Preserves API error classification for streamed errors.

    7.11.0release notes

  • Waits for input cleanup to finish before reporting recording success.

    7.11.0release notes

  • Prefers readable inputs over body metadata when handling audio inputs.

    7.11.0release notes

  • Signals only recording processes that have started.

    7.11.0release notes

  • Cancels Bedrock requests that are awaiting AWS credentials.

    7.11.0release notes

  • Rejects zero batch upload concurrency.

    7.11.0release notes

  • Treats cancelled vector store files as terminal rather than continuing to poll.

    7.11.0release notes

  • Accepts ArrayBuffers originating in another realm for uploads.

    7.11.0release notes

  • Supports the Edge Runtime when Node process is unavailable.

    7.11.0release notes

  • Preserves numeric embedding output when request bodies are overridden.

    7.11.0release notes

  • Preserves numeric responses after request hooks run.

    7.11.0release notes

  • Validates the response collection before decoding embeddings.

    7.11.0release notes

  • Preserves explicitly empty filenames during uploads.

    7.11.0release notes

  • Corrects the fields reported in function argument completion events.

    7.11.0release notes

  • Preserves alternate Headers inputs.

    7.11.0release notes

  • Parses JSON media types without case sensitivity.

    7.11.0release notes

  • Parses namespaced function tools in Responses.

    7.11.0release notes

  • Follows next cursors through empty pages so pagination can continue.

    7.11.0release notes

  • Bounds partial number recovery to its token.

    7.11.0release notes

  • Honors zero as a custom polling interval.

    7.11.0release notes

  • Preserves routing components in the Realtime base URL.

    7.11.0release notes

  • Validates indexed response collections.

    7.11.0release notes

  • Omits parsed values from replayed Responses history.

    7.11.0release notes

  • Rejects invalid retry counts.

    7.11.0release notes

  • Preserves retry delays when work runs in parallel workers.

    7.11.0release notes

  • Interrupts pending reads when a stream is cancelled.

    7.11.0release notes

  • Surfaces server error frames and settles streams even after listeners throw.

    7.11.0release notes

  • Retains terminal message snapshots so they remain available after completion.

    7.11.0release notes

  • Accounts for elapsed time during token exchange.

    7.11.0release notes

  • Serializes tool-call IDs once per completion.

    7.11.0release notes

  • Treats a cancelled vector store file as a terminal polling state.

    7.11.0release notes

  • Recognizes the incomplete status for web search calls.

    7.11.0release notes

  • Carries declared options through withOptions and fixes Azure deployment paths.

    7.11.0release notes

  • CommonJS now loads under browser export conditions.

    7.9.0release notes

  • CommonJS package imports are supported with Jest 28.

    7.9.0release notes

  • Multipart bodies are detected from own properties only.

    7.8.0release notes

  • Native browser ESM imports are restored.

    7.8.0release notes

  • WebSocket waiters are settled when listeners throw.

    7.8.0release notes

  • The workload-identity refresh buffer is clamped to the token lifetime.

    7.8.0release notes

  • Cancellation is now honored while decoding SSE responses.

    7.7.0release notes

  • Preserves Blob files and multipart media types during uploads.

    7.6.0release notes

  • Honors cancellation during polling delays and Bedrock bearer credential resolution, and stops delayed or additional tool callbacks after cancellation.

    7.6.0release notes

  • Preserves large streaming responses.

    7.6.0release notes

  • Preserves array order when creating multipart uploads.

    7.6.0release notes

  • Prevents logprobs from being double-counted in streamed chat completions.

    7.6.0release notes

  • Bounds the work performed during webhook signature verification.

    7.6.0release notes

  • The audio upload metadata requirements are clarified.

    7.5.0release notes

  • Mid-stream errors are surfaced when iterating buffered streams.

    7.5.0release notes

  • Custom tool calls are supported in ChatCompletionStream.

    7.5.0release notes

  • Custom tool calls are supported in the parser and ChatCompletionStream.

    7.5.0release notes

  • Azure preserves model-to-deployment mapping for images.edit.

    7.5.0release notes

  • Streamed Responses output text is kept linear and canonical.

    7.5.0release notes

  • Responses streams reject with OpenAIError when the stream emits an error event.

    7.5.0release notes

  • SSE parsing handles mixed line endings.

    7.5.0release notes

  • SSE streams finish immediately after [DONE].

    7.5.0release notes

  • toFile no longer throws a TypeError for Responses without a URL.

    7.5.0release notes

openai 6137 changes

Breaking changes 13

  • Promises emitted through EventEmitter are now rejected when an error occurs.

    6.45.0release notes

  • Incomplete structured output is no longer parsed.

    6.45.0release notes

  • The migrate CLI has been removed.

    6.40.0release notes

  • Removes web_search_call.results from ResponseIncludable.

    6.34.0release notes

  • Makes the type field required in ResponseInputMessageItem.

    6.33.0release notes

  • The detail field was removed from ResponseInputFile.

    6.28.0release notes

  • The detail field was removed from ResponseInputFileContent.

    6.28.0release notes

  • The GA ComputerTool now uses the CompuerTool class.

    6.27.0release notes

  • The computer_use_preview tool is moved to ComputerUsePreview.

    6.27.0release notes

  • Updates the Responses API parameter for prompt_cache_key.

    6.26.0release notes

  • The model parameter is now required for the responses/compact endpoint.

    6.11.0release notes

  • InputAudio is removed from ResponseInputContent.

    6.8.0release notes

  • output can now be a string or an array of response text, image, or file items, so callers must not assume it is always a string.

    6.0.0release notes

Security 4

Deprecations 1

New APIs and options 73

  • Support was added for spend_limit admin APIs.

    6.49.0release notes

  • Helpers now support standard schemas.

    6.49.0release notes

  • A helper for Zod realtime functions was added.

    6.49.0release notes

  • Zod now supports schema definitions.

    6.49.0release notes

  • Adds an endpoint for managing API keys for a service account within an organization project.

    6.48.0release notes

  • Adds owner_project_access to APIKeyListParams.

    6.47.0release notes

  • Adds async event iterators for consuming events.

    6.47.0release notes

  • Adds fromReadableStream to ResponseStream.

    6.47.0release notes

  • Adds support for streaming file uploads.

    6.47.0release notes

  • API updates for gpt-5.6-sol; developers can use the updated model support.

    6.46.0release notes

  • Adds an afterCompletion hook to runTools.

    6.45.0release notes

  • Realtime now supports sideband connections using call_id.

    6.45.0release notes

  • Adds a helper for response input items.

    6.45.0release notes

  • Adds a helper to accumulate response streams.

    6.45.0release notes

  • Adds the chat completions moderation API.

    6.42.0release notes

  • Adds the responses moderation API.

    6.42.0release notes

  • Adds support for using Responses with Amazon Bedrock.

    6.41.0release notes

  • Responses now include an additional_tools item.

    6.40.0release notes

  • The responses compact method accepts the service_tier parameter.

    6.38.0release notes

  • Admin organization usage responses now include a quantity field.

    6.37.0release notes

  • Realtime translation is launched.

    6.37.0release notes

  • Adds support for Admin API Keys per endpoint.

    6.36.0release notes

  • Adds group_type and user metadata fields and updates types across admin resources.

    6.36.0release notes

  • Adds the OAuthErrorCode type for representing OAuth error codes.

    6.35.0release notes

  • Adds the prompt_cache_retention parameter to responses compact.

    6.35.0release notes

  • Responses now support results as an output option for web_search_call.

    6.35.0release notesrelease notes

  • WebSocket clients support binary messages.

    6.35.0release notes

  • WebSocket clients support path parameters.

    6.35.0release notes

  • WebSockets are supported in the browser when using simple auth.

    6.35.0release notes

  • The underlying WebSocket type is exposed for use by developers.

    6.35.0release notes

  • Adds the phase field to Message in conversations.

    6.34.0release notes

  • The client adds support for short-lived tokens.

    6.34.0release notes

  • Adds a keys field to computer action types.

    6.33.0release notes

  • Adds stream() and async iterator support to WebSocket classes.

    6.33.0release notes

  • Added the 5.4 mini model slug.

    6.32.0release notes

  • Added the 5.4 nano model slug.

    6.32.0release notes

  • Adds in and nin filter types to ComparisonFilter, allowing developers to use these filters.

    6.31.0release notes

  • Adds the defer_loading field to NamespaceTool.

    6.30.0release notes

  • Batches can now use the /v1/videos endpoint.

    6.30.0release notes

  • Adds support for custom voices.

    6.29.0release notes

  • Sora API improvements add a character API.

    6.28.0release notes

  • Sora API improvements support higher resolution exports.

    6.28.0release notes

  • Sora API improvements add video edits.

    6.28.0release notes

  • Sora API improvements add video extensions.

    6.28.0release notes

  • Adds a new computer tool to the API.

    6.26.0release notes

  • Adds gpt-5.4 support to the API.

    6.26.0release notes

  • Adds the tool search tool to the API.

    6.26.0release notes

  • Adds phase to the API.

    6.25.0release notes

  • Added gpt-audio-1.5 to realtime.

    6.24.0release notes

  • Added gpt-realtime-1.5 to realtime.

    6.24.0release notes

  • WebSockets are now available for the Responses API.

    6.23.0release notes

  • Container API support was added for network_policy.

    6.22.0release notes

  • Container API support was added for skills.

    6.22.0release notes

  • Images are now supported in the batch API, allowing developers to include them in batch requests.

    6.21.0release notes

  • Adds API support for hosted shell.

    6.20.0release notes

  • Adds API support for skills.

    6.20.0release notes

  • Adds context_management support to the responses API.

    6.19.0release notes

  • Responses support image generation actions.

    6.18.0release notes

  • Adds the name field to ResponseFunctionCallArgumentsDoneEvent.

    6.18.0release notes

  • Adds a status field to shell_call_output.

    6.17.0release notes

  • Adds the completed_at prop to Response.

    6.16.0release notes

  • Adds support for gpt-image-1.5.

    6.14.0release notes

  • Dated slugs were added for sora-2.

    6.13.0release notes

  • Adds support for gpt-5.2 in the API.

    6.12.0release notes

  • Adds support for the gpt-5.1-codex-max model.

    6.10.0release notes

  • Adds the compact Responses API endpoint.

    6.10.0release notes

  • Adds API support for gpt-5.1.

    6.9.0release notes

  • Hybrid searching adds ranking options.

    6.8.0release notes

  • The Realtime API adds token_limits.

    6.8.0release notes

  • Adds support for zod 4 schemas.

    6.7.0release notes

  • Adds responses.input_tokens.count to the API, allowing developers to access the input token count.

    6.6.0release notes

  • The audio/transcriptions endpoint now supports gpt-4o-transcribe-diarize.

    6.4.0release notes

  • Support for BatchUsage was added.

    6.0.0release notes

Behavior and default changes 6

  • The API now accepts None for prompt_cache_key.

    6.49.0release notes

  • The API now accepts None for safety_identifier.

    6.49.0release notes

  • Passes context to runTools callbacks.

    6.47.0release notes

  • Workload identity is now included in audit logs.

    6.40.0release notes

  • Messages can be queued while waiting for a connection.

    6.35.0release notes

  • WebSocket connections can automatically reconnect.

    6.35.0release notes

Fixes and other changes 40

  • Azure endpoints now have trailing slashes normalized.

    6.49.0release notes

  • Parsed tool callback arguments are now inferred.

    6.49.0release notes

  • Stream handling now accounts for audio completion markers.

    6.49.0release notes

  • Schema definition references are escaped before strict validation.

    6.49.0release notes

  • Schema types are preserved while references are escaped.

    6.49.0release notes

  • Header names are normalized before appending, fixing inconsistent header handling.

    6.48.0release notes

  • Handles Azure filter stream chunks.

    6.47.0release notes

  • Avoids deep Zod types in Deno.

    6.47.0release notes

  • Preserves readable stream deltas in Assistants.

    6.47.0release notes

  • Emits stream finalization errors.

    6.47.0release notes

  • Adds support for zod v4 mini schemas.

    6.47.0release notes

  • Array delta entries are placed by index instead of appended, preserving their intended positions.

    6.46.0release notes

  • The runner normalizes missing tool call IDs.

    6.46.0release notes

  • Sanitizes extracted definition references in the Zod integration.

    6.45.0release notes

  • Fully resolves extracted wrapper definitions in the Zod integration.

    6.45.0release notes

  • Optional bodies set to null are no longer serialized.

    6.45.0release notes

  • Restores output_text on streamed final responses.

    6.45.0release notes

  • Leading whitespace chunks no longer break the partial parser for structured outputs.

    6.45.0release notes

  • ActionSearch.query is now optional.

    6.40.0release notes

  • Treat text/plan with format: binary as a raw upload.

    6.39.1release notes

  • Improves guidance for undici dispatcher mismatches.

    6.39.1release notes

  • Types now allow runtime fetch options.

    6.39.0release notes

  • Image 2 is updated.

    6.37.0release notes

  • The size enum regression is fixed.

    6.37.0release notes

  • Fixes support for admin API key authentication.

    6.36.0release notes

  • InputFileContent has additional detail in its API definition.

    6.35.0release notes

  • Corrects the prompt_cache_retention enum value in chat/completions and responses.

    6.35.0release notes

  • Allows a single message to exceed the WebSocket queue size.

    6.35.0release notes

  • Aligns SDK response types with expanded item schemas.

    6.33.0release notes

  • Fixes the phase enum.

    6.25.0release notes

  • Prevents abort listeners from being removed too early.

    6.18.0release notes

  • Fixes a memory leak involving abort signals.

    6.18.0release notes

  • The client no longer parses responses with an empty content-length.

    6.18.0release notes

  • Updates the type for the find_in_page action.

    6.18.0release notes

  • Undoes a change to the web search Find action.

    6.18.0release notes

  • The grader input list was fixed, which may affect how developers provide grader inputs.

    6.13.0release notes

  • Corrects the API endpoint used by the code tool.

    6.11.0release notes

  • Returns the correct lines when TypeScript errors occur.

    6.11.0release notes

  • Aligns the TypeScript types for input items and output items.

    6.9.1release notes

  • The nullability of logprobs was fixed, clarifying its type for developers.

    6.8.1release notes

openai 546 changes

Breaking changes 7

  • Embedding creation now defaults to base64 encoding.

    5.0.0release notes

  • File uploads now accept only standard types.

    5.0.0release notes

  • Function helper methods were renamed to include tools.

    5.0.0release notes

  • The endpoint now returns binary content.

    5.0.0release notes

  • Support for end-of-life Node.js versions was dropped.

    5.0.0release notes

  • The deprecated runFunctions method was removed.

    5.0.0release notes

  • Parsing no longer supplies an empty array as the default for tool_calls.

    5.0.0release notes

Deprecations 2

  • The Assistants API was deprecated.

    5.0.0release notes

  • Miscellaneous public files moved to the core/ directory, and their old paths were deprecated.

    5.0.0release notes

New APIs and options 23

Behavior and default changes 4

  • Beta completions methods were promoted to GA.

    5.0.0release notes

  • The client accepts JSON content types that follow RFC 6838.

    5.0.0release notes

  • Headers are now exposed on some streaming errors, giving developers access to response headers in those cases.

    5.0.0release notes

  • The supported Voice IDs were updated, affecting which voice identifiers developers can use.

    5.0.0release notes

Fixes and other changes 10

  • AssistantStream is now exported.

    5.0.0release notes

  • The client now sends all configured authentication headers.

    5.0.0release notes

  • The Azure deployments endpoints now include /images/edits.

    5.0.0release notes

  • ParseableToolsParams is now exported.

    5.0.0release notes

  • Responses pagination types now tolerate a missing id.

    5.0.0release notes

  • Streaming retrieve calls for responses are now supported.

    5.0.0release notes

  • Streaming errors are now more accurate.

    5.0.0release notes

  • The incomplete thread run event is now handled.

    5.0.0release notes

  • Transcription streaming is now handled correctly.

    5.0.0release notes

  • The client now sends the timeout header value in seconds.

    5.0.0release notes