unstale

pypi / openai

openai

What changed in openai 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

16 breaking6 security3 deprecations138 new APIs and options1 performance10 behavior and defaults113 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

openai 3157 changes

Breaking changes 4

  • Errors raised while reading streams are normalized.

    3.14.0release notes

  • Usage APIs were updated; developers using usage endpoints may need to adjust their code.

    3.7.0release notes

  • The httpx package is no longer installed automatically, so applications that need it must account for that dependency themselves.

    3.0.0release notes

  • HTTPX2 is now the default HTTP client; applications using custom HTTPX clients, transports, or configuration objects must migrate to HTTPX2 equivalents or use the temporary legacy HTTPX escape hatch.

    3.0.0release notes

Security 4

  • Adds expiration controls for service account keys.

    3.11.0release notes

  • Hardens the X.509 workload identity integration.

    3.6.0release notes

  • Preserves Azure authentication boundaries across transports.

    3.4.0release notes

  • Applies consistent origin checks to WebSocket redirects.

    3.4.0release notes

Deprecations 2

New APIs and options 67

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

    3.35.0release notes

  • Adds the ultrafast service tier for Agents.

    3.35.0release notes

  • Adds support for Realtime Translation WebSocket sessions.

    3.34.0release notes

  • Image requests and responses now include safety identifiers.

    3.33.0release notes

  • Supports audio fixture playback in Live sessions.

    3.32.0release notes

  • Adds cache settings and key options to the API.

    3.32.0release notes

  • Adds support for creating voices from prompts.

    3.32.0release notes

  • Adds options for regional processing residency.

    3.32.0release notes

  • Adds response error diagnostics.

    3.32.0release notes

  • Adds browser and computer toolsets for developers to use.

    3.31.0release notes

  • Adds beta session spending limits.

    3.30.0release notes

  • Exposes image tool error and moderation details.

    3.30.0release notes

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

    3.30.0release notes

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

    3.30.0release notes

  • Adds support for updating project API key expiry.

    3.30.0release notes

  • Adds the billing_not_active session error code.

    3.29.0release notes

  • Adds metadata filters.

    3.29.0release notes

  • Adds API support for suspending and expiring agent environments.

    3.28.0release notes

  • Adds standalone Decisions support to the API.

    3.26.0release notes

  • The API adds agent turn items.

    3.25.0release notes

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

    3.25.0release notes

  • Local tool failures can now be observed.

    3.25.0release notes

  • The API adds usage source grouping.

    3.25.0release notes

  • Adds agent session events.

    3.24.0release notes

  • Adds custom voice creation.

    3.24.0release notes

  • Chat Completions now allow original image detail.

    3.23.0release notes

  • The API adds session traces and Realtime translations.

    3.23.0release notes

  • Agents can stage files and download turn artifacts.

    3.23.0release notes

  • Session streams can return typed answers.

    3.23.0release notes

  • Typed application actions can be exposed as agent tools.

    3.23.0release notes

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

    3.21.0release notes

  • Adds credential and session options for Agents.

    3.20.0release notes

  • Adds Cyber access programs to Responses.

    3.20.0release notes

  • Allows opting in to incremental WebSocket text and tool snapshots.

    3.20.0release notes

  • Adds support for GCP external storage.

    3.19.0release notes

  • Adds the GPT-Rosalind research model.

    3.19.0release notes

  • Adds GPT-6 Sol and Luna model identifiers for developers to use.

    3.18.0release notes

  • Adds support for using environment variable vault credentials.

    3.17.0release notes

  • Adds API support for managing external storage configurations.

    3.17.0release notes

  • Adds support for retrieving safety cases.

    3.17.0release notes

  • Adds webhook events for safety warnings and deactivation.

    3.17.0release notes

  • Adds events for session environment resets.

    3.17.0release notes

  • Adds SIP media security information to incoming call events.

    3.17.0release notes

  • Adds webhook endpoint management.

    3.16.0release notes

  • Adds model settings for agent sessions.

    3.15.0release notes

  • Adds audio-mini model choices.

    3.15.0release notes

  • Adds events for tracking compaction progress.

    3.15.0release notes

  • Adds managed Responses WebSocket sessions.

    3.15.0release notes

  • Adds the Agents API to the OpenAI Python library.

    3.13.0release notes

  • Adds aclose() to AsyncStream for standard async cleanup.

    3.12.0release notes

  • Adds the Live API.

    3.12.0release notes

  • Adds image options for developers to use.

    3.10.0release notes

  • Adds expiration fields for service-account API keys.

    3.10.0release notes

  • Adds prompt cache diagnostics for developers to inspect prompt caching.

    3.9.0release notes

  • Adds gpt-6-astra and related API features.

    3.8.0release notes

  • Adds compute_units to Responses and Chat Completions usage.

    3.6.0release notes

  • Adds an obfuscation field to ChatCompletionChunk.

    3.4.0release notes

  • Adds cost quantity units.

    3.4.0release notes

  • Adds project residency configuration.

    3.4.0release notes

  • The SDK supports named data-residency endpoints.

    3.3.0release notes

  • Adds support for using the Bedrock Runtime endpoint.

    3.2.0release notes

  • Adds new service and image types.

    3.2.0release notes

  • Adds streaming events for shell calls.

    3.2.0release notes

  • Structured MCP errors are added.

    3.1.0release notes

  • WebSocket errors are added.

    3.1.0release notes

  • WebSocket stream IDs are added to the API.

    3.1.0release notes

  • An event for an issued workload identity access token is added.

    3.1.0release notes

Performance 1

Behavior and default changes 7

Fixes and other changes 72

  • Preserves beta Realtime byte reads when using websockets 13.

    3.35.1release notes

  • Preserves byte receives when using websockets 13.

    3.35.0release notes

  • The Decisions cache breakpoint parameter type is now shared.

    3.33.0release notes

  • Supports Decisions in Live sessions.

    3.32.0release notes

  • Adds model notices.

    3.32.0release notes

  • Declares Realtime response error messages.

    3.32.0release notes

  • Restores async HTTP/1.1 connection reuse for streaming.

    3.30.0release notes

  • Adds organization Decisions usage reporting.

    3.30.0release notes

  • Aligns beta non-null parameters.

    3.29.0release notes

  • Adds shida to the named Live voices.

    3.29.0release notes

  • Adds vault updates.

    3.29.0release notes

  • Adds prewarmed hosted environments.

    3.27.0release notes

  • Corrected the parameters for custom voice creation.

    3.26.1release notes

  • type_to_response_format_param is now publicly exported.

    3.25.0release notes

  • Prioritizes routing fields in parse helpers.

    3.24.0release notes

  • Prioritizes Python request routing fields.

    3.24.0release notes

  • Corrects the endpoint used to cancel an eval run.

    3.23.0release notes

  • File processing timeouts use a monotonic clock.

    3.23.0release notes

  • Reconnects now respect send queue limits.

    3.23.0release notes

  • Reconnects no longer replay uncertain typed sends.

    3.23.0release notes

  • WebSocket endpoint paths and query parameters are retained.

    3.23.0release notes

  • Corrected the error message shown when authentication is missing.

    3.22.1release notes

  • Fixed transformation of NotRequired typed dictionary fields.

    3.22.1release notes

  • Computer use is now available to beta agents.

    3.22.0release notes

  • Preserves base URL queries in realtime WebSocket upgrades.

    3.20.0release notes

  • Preserves caller queues and prevents uncertain WebSocket replay in live sessions.

    3.20.0release notes

  • Retains configured queues without replaying attempted sends in realtime sessions.

    3.20.0release notes

  • Avoids hangs at fractional transcript grouping deadlines in live sessions.

    3.20.0release notes

  • Retries TLS transport errors that are not mapped.

    3.20.0release notes

  • Preserves detailed WebSocket accumulator snapshots.

    3.20.0release notes

  • Keeps query parameters out of live WebSocket endpoint paths.

    3.20.0release notes

  • Preserve single files when using fallback extraction paths.

    3.19.2release notes

  • Merges HTTP headers case-insensitively.

    3.19.1release notes

  • Preserves single-pass tool iterables when using chat completions.

    3.19.1release notes

  • Tolerates older optional aiohttp installations.

    3.19.0release notes

  • Propagates __api_exclude__ through recursive asynchronous transformation.

    3.19.0release notes

  • Handles omission markers in queued WebSocket events.

    3.19.0release notes

  • Retries only requests whose content can be replayed.

    3.19.0release notes

  • Preserves model choices.

    3.17.0release notes

  • Corrects model types.

    3.17.0release notes

  • Treats null message content as empty when parsing a response.

    3.17.0release notes

  • Dropped TextFormatT parameterization in parse_response to fix a memory leak.

    3.16.2release notes

  • Unrelated API resources are no longer loaded on first use.

    3.16.1release notes

  • Preserves moderation results in chat streams.

    3.15.0release notes

  • Adds prompt-cache prewarming.

    3.15.0release notes

  • Diagnostics log only metadata, limiting the information recorded.

    3.14.1release notes

  • Retry limits are validated, and application errors are preserved.

    3.14.1release notes

  • Corrects the typo in the StreamAlreadyConsumed error message.

    3.14.1release notes

  • Structured parsing is skipped for commentary responses.

    3.14.1release notes

  • Normalizes API error codes to strings.

    3.14.0release notes

  • Includes the completion in content filter errors.

    3.14.0release notes

  • Handles null text in output_text.

    3.14.0release notes

  • Normalizes PathLike upload tuples.

    3.14.0release notes

  • Preserves response stream indexes after empty items.

    3.14.0release notes

  • Bounds vector store file polling.

    3.14.0release notes

  • Handles bare dict and list annotations without type arguments.

    3.12.0release notes

  • Preserves finalized output on null response completion.

    3.12.0release notes

  • Adds GPT Image 2.5 models for developers to use.

    3.10.0release notes

  • Corrects the fields on function argument completion events.

    3.9.0release notes

  • Refuses overflowing retry delays supplied by the server.

    3.9.0release notes

  • Accepts incomplete statuses for web search calls.

    3.9.0release notes

  • Resolves one Azure authentication mode.

    3.4.0release notes

  • Encodes Azure deployment names consistently.

    3.4.0release notes

  • Keeps Azure provider validation errors value-free.

    3.4.0release notes

  • Computes custom-code summaries from trusted workflow code.

    3.4.0release notes

  • Keeps diagnostics metadata-only.

    3.4.0release notes

  • Correctly encodes Realtime call offers and session configuration.

    3.4.0release notes

  • Decodes SSE incrementally without limiting event size.

    3.4.0release notes

  • Preserves the configured TLS hostname.

    3.4.0release notes

  • Preserves byte accounting for the WebSocket send queue during flush.

    3.4.0release notes

  • Optional networking dependencies must be patched.

    3.3.0release notes

  • An Ultrafast tier is added.

    3.1.0release notes

openai 2130 changes

Breaking changes 12

  • The package now requires Python 3.10.

    2.49.0release notes

  • Requires patched aiohttp on Python 3.10 and later.

    2.47.0release notes

  • Removes beta annotation compatibility aliases.

    2.46.0release notes

  • The legacy Python CLI was removed, so developers using it may need another way to run those commands.

    2.35.0release notes

  • Stream helpers now require bearer authentication.

    2.34.0release notes

  • Makes type required in ResponseInputMessageItem.

    2.30.0release notes

  • The WebSocket protocol now matches the HTTP protocol instead of using WSS.

    2.27.0release notes

  • The computer_use_preview tool is moved to ComputerUsePreview.

    2.26.0release notes

  • Removes the prompt_cache_key parameter from responses.

    2.25.0release notes

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

    2.10.0release notes

  • Support for Python 3.8 was dropped.

    2.7.2release notes

  • InputAudio is removed from ResponseInputContent.

    2.7.0release notes

Security 2

  • Admin authentication no longer falls back to bearer authentication.

    2.34.0release notes

  • Sanitizes endpoint path params.

    2.30.0release notes

Deprecations 1

New APIs and options 71

  • Adds new model identifiers for the Responses API.

    2.54.0release notes

  • Adds gpt-5.5 to the available model types.

    2.53.0release notes

  • Adds the tool name field to Responses types.

    2.53.0release notes

  • Adds the tool namespace field to Responses types.

    2.53.0release notes

  • Added content provenance checks to the API.

    2.52.0release notes

  • The API and helper methods support the fast tier.

    2.51.0release notes

  • API requests now accept None for prompt_cache_key.

    2.48.0release notes

  • API requests now accept None for safety_identifier.

    2.48.0release notes

  • Adds support for spend_limit admin APIs.

    2.48.0release notes

  • Adds experimental runtime support for HTTPX2 clients.

    2.47.0release notes

  • Adds the owner_project_access parameter to APIKeyListParams.

    2.46.0release notes

  • Adds the service-account API keys endpoint under organization projects.

    2.46.0release notes

  • Adds admin spend alerts to the API, enabling developers to use spend alert operations through the SDK.

    2.42.0release notes

  • Adds the chat completions moderation API.

    2.41.0release notes

  • Adds the responses moderation API.

    2.41.0release notes

  • Adds support for using Responses with Amazon Bedrock.

    2.40.0release notes

  • Responses can include an additional_tools item.

    2.39.0release notes

  • The responses compact method accepts a service_tier parameter.

    2.37.0release notes

  • Adds realtime API updates identified in the notes as “realtime 2”; no endpoint or identifier details are provided.

    2.36.0release notes

  • Admin API key authentication is supported.

    2.34.0release notes

  • Support was added for Admin API Keys per endpoint.

    2.34.0release notes

  • Users now support an email parameter.

    2.34.0release notes

  • Projects now support external_key_id.

    2.34.0release notes

  • Headers can now be set via environment variables.

    2.34.0release notes

  • Users now support a metadata parameter.

    2.34.0release notes

  • Adds detail to InputFileContent, allowing developers to provide this information.

    2.32.0release notes

  • Adds the OAuthErrorCode type for working with OAuth error codes.

    2.32.0release notes

  • Adds an event handler implementation for websockets.

    2.32.0release notes

  • Adds support for reconnection in websockets.

    2.32.0release notes

  • A phase field is added to conversations messages.

    2.31.0release notes

  • The client supports sending raw data over websockets.

    2.31.0release notes

  • The client adds support for short-lived tokens.

    2.31.0release notes

  • Adds a keys field to Click, DoubleClick, Drag, Move, and Scroll computer actions.

    2.30.0release notes

  • Adds 5.4 nano and mini model slugs for use with the API.

    2.29.0release notes

  • The batches create method now supports the /v1/videos endpoint.

    2.29.0release notes

  • Adds the in operator to the ComparisonFilter type.

    2.29.0release notes

  • Adds the nin operator to the ComparisonFilter type.

    2.29.0release notes

  • Adds the defer_loading field to ToolFunction.

    2.29.0release notes

  • Adds support for custom voices.

    2.28.0release notes

  • Sora API improvements include a character API.

    2.27.0release notes

  • Sora API improvements include higher resolution exports.

    2.27.0release notes

  • Sora API improvements include video extensions and edits.

    2.27.0release notes

  • Adds a new computer tool to the API.

    2.25.0release notes

  • Adds gpt-5.4 for developers to use through the API.

    2.25.0release notes

  • Adds the tool search tool to the API.

    2.25.0release notes

  • Adds phase to the API.

    2.24.0release notes

  • Added as a model option for realtime calls.

    2.23.0release notes

  • Added as a model option for realtime calls.

    2.23.0release notes

  • WebSockets are now available for the Responses API.

    2.22.0release notes

  • Container support adds network_policy, allowing developers to configure container network policy.

    2.21.0release notes

  • Container support adds skills.

    2.21.0release notes

  • The batch API now supports images, allowing developers to include images in batch requests.

    2.20.0release notes

  • Adds API support for skills and hosted shell.

    2.19.0release notes

  • Adds context_management to responses, allowing developers to use this new Responses API capability.

    2.18.0release notes

  • Adds a custom JSON encoder to support extended types.

    2.17.0release notes

  • Adds image generation actions for responses.

    2.17.0release notes

  • Adds the name field to ResponseFunctionCallArgumentsDoneEvent.

    2.17.0release notes

  • Adds a status field to shell_call_output so developers can access the output status.

    2.17.0release notes

  • The client adds support for binary request streaming.

    2.16.0release notes

  • The Response object now includes a completed_at property.

    2.15.0release notes

  • Slugs are available for new audio models.

    2.14.0release notes

  • All model parameters now accept strings, allowing developers to pass model identifiers directly.

    2.14.0release notes

  • Adds gpt-image-1.5 to the API.

    2.13.0release notes

  • Adds support for GPT-5.2 in the API.

    2.11.0release notes

  • Adds gpt-5.1-codex-max as a supported API model.

    2.9.0release notes

  • Adds support for the responses/compact API.

    2.9.0release notes

  • GPT-5.1 is supported by the API.

    2.8.0release notes

  • Hybrid searching gains ranking options.

    2.7.0release notes

  • The Realtime API adds token_limits.

    2.7.0release notes

  • Adds responses.input_tokens.count to count input tokens.

    2.6.0release notes

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

    2.4.0release notes

Behavior and default changes 3

  • client_id is no longer necessary when using the workload identity provider for authentication.

    2.37.0release notes

  • Allows enqueuing to websockets even when they are not connected.

    2.32.0release notes

  • The GA ComputerTool now uses the CompuerTool class.

    2.26.0release notes

Fixes and other changes 41

  • Clarifies the metadata requirements for audio uploads.

    2.54.0release notes

  • The client now honors Retry-After delays up to two minutes.

    2.52.0release notes

  • The transcription keyword overload was restored.

    2.50.0release notes

  • Transcription model updates were made to the API.

    2.50.0release notes

  • Beta resource accessors are restored, allowing developers to access beta resources again.

    2.45.0release notes

  • API updates for gpt-5.6-sol may affect how developers use the model.

    2.45.0release notes

  • Prioritizes the first auth header.

    2.44.0release notes

  • Allows Bedrock API keys to be set directly on the client.

    2.40.0release notes

  • ActionSearch.query is optional.

    2.39.0release notes

  • Workload identity is included in audit logs.

    2.39.0release notes

  • The missing f-string prefix in a file type error message is fixed.

    2.37.0release notes

  • Fixes a regression in the imagegen size enum.

    2.35.1release notes

  • The image API was updated; the notes do not specify the particular API changes.

    2.35.0release notes

  • Explicit Azure authentication headers are now allowed.

    2.34.0release notes

  • The Response model's completed_at timestamp type is corrected to int.

    2.34.0release notes

  • The Response model's created_at timestamp type is corrected to int.

    2.34.0release notes

  • Multipart file arrays now use the correct field name format.

    2.34.0release notes

  • The enum value was corrected from in-memory to in_memory.

    2.33.0release notesrelease notes

  • Ensures file data are sent as only one parameter.

    2.32.0release notes

  • Hardcoded query parameters are preserved when merged with user params.

    2.31.0release notes

  • Aligns SDK response types with expanded item schemas.

    2.30.0release notes

  • The SDK no longer passes by_alias unless it is set.

    2.29.0release notes

  • The merged videos resource was repaired.

    2.27.0release notes

  • Fixes the phase enum.

    2.24.0release notes

  • Fixes a memory leak in parse methods.

    2.21.0release notes

  • Preserves method visibility for compatibility checks.

    2.21.0release notes

  • Updates the type for the find_in_page action.

    2.17.0release notes

  • Undoes a change to the web search Find action.

    2.17.0release notes

  • The patch method now uses async_to_httpx_files.

    2.14.0release notes

  • Dated slugs were added for sora-2.

    2.12.0release notes

  • The grader input list was fixed.

    2.12.0release notes

  • Pyright can now infer TypedDict types within SequenceNotStr.

    2.10.0release notes

  • The client no longer mutates a user-provided response config object.

    2.9.0release notes

  • Streams are now always closed.

    2.9.0release notes

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

    2.8.1release notes

  • The signature is updated for Pydantic v1 compatibility.

    2.8.0release notes

  • The signature is updated for Pydantic v1 compatibility.

    2.8.0release notes

  • Compatibility with Python 3.14 was fixed.

    2.7.2release notes

  • Fixes the nullability of logprobs.

    2.7.1release notes

  • Uploads avoid leaking file handles.

    2.7.0release notes

  • Streams can be closed without requiring full consumption.

    2.7.0release notes