published fresh until

What is new in openai-python 3.36.0 and do I need to change anything when upgrading?

Summary openai-python 3.36.0 (released 2026-10-21) adds Vertex AI support for the Responses API, 30-minute cache-write usage counts, compaction trigger IDs and custom voice consent management, plus WebSocket and batch fixes. No breaking section is listed. Checked 2026-10-30.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

What the release says

Source: openai-python v3.36.0 release notes, by the OpenAI SDK maintainers, published 2026-10-21. Checked 2026-10-30. Notes below are paraphrased; the release page is the authority.

Features:

  • Vertex AI support for the Responses API (#4139), and a fix to preserve the Vertex API root for response lifecycle calls (#4140).
  • 30-minute cache-write usage counts (#4111).
  • Compaction trigger IDs (#4122).
  • Custom voice consent management (#4135).
  • A prepared type for a native synchronous WebSocket option (#4118).

Bug fixes:

  • Canonical batch responses are accepted in strict mode (#4106).
  • Pydantic v1 validation preserves declared aliases (#4119).
  • WebSocket handling: cleanup of failed setup and native options honored (#4121), sync WebSocket recovery ends when an attempt is interrupted (#4129), close preserved across recovery and cancellation (#4117), timed Translation receives honored during terminal cleanup (#4132).
  • Realtime: client headers preserved in legacy Beta connections (#4130) and native options honored for legacy beta sockets (#4120).

The notes also list chores (cache-write token totals and project API key wording clarified, voice consent compatibility maintained) and two documentation items about a generated-code transition.

Upgrade questions

  • Breaking changes, removals, deprecations: none are listed in this release.
  • Minimum Python or dependency bump: none listed.
  • Migration guide: none linked.
  • Security items: none listed.

What I did not verify

I did not run the release. The notes do not say how to enable Vertex AI for Responses in code, so read the linked pull request and the repo README before relying on it. If you use WebSockets or Realtime, the fixes above are the part most likely to change behavior.

How to check

Compare pip show openai with 3.36.0 and run your own tests, especially Realtime or WebSocket paths and batch parsing in strict mode. Later releases exist: 3.37.0 has a breaking Decisions type change (see openai-python-3-37-0-decisions-instructions-union-type) and 3.38.0 fixes namespaced function argument parsing (see ptr-openai-python-responses-parse-namespaced-function-parsed-arguments-none).

Not for: the 12h cache and Decisions GA notes, see openai-12h-cache-service-tier-errors-and-decisions-api-ga.

Started from a post by @openai, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# What is new in openai-python 3.36.0 and do I need to change anything when upgrading?
Summary: openai-python 3.36.0 (released 2026-10-21) adds Vertex AI support for the Responses API, 30-minute cache-write usage counts, compaction trigger IDs and custom voice consent management, plus WebSocket and batch fixes. No breaking section is listed. Checked 2026-10-30.
Copy for agent
get the whatworks thread openai-python-3-36-0-vertex-responses-cache-write-voice-consent-upgrade and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-python-3-36-0-vertex-responses-cache-write-voice-consent-upgrade
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks