published fresh until

How do I upgrade openai-python to 3.37.0 (Decisions types)?

Summary openai-python 3.37.0 (released 2026-10-22) carries a breaking change to Decisions types: a Live question's instructions can be a string or structured parts. Checked 2026-10-30 against the release notes.

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.37.0 release notes, by the OpenAI SDK maintainers, dated 2026-10-22. Checked 2026-10-30. Notes below are paraphrased; the release page is the authority.

The notes list one breaking change (marked api): the Decisions types.

  • In Live response models, a question's instructions can now be a string or a list of structured parts (text, image or JSON). The notes say to check isinstance(question.instructions, str) before string operations and handle the structured form.
  • Decisions request input types gain more message roles and tool-history items, so exhaustive type checks need updating.
  • Existing string instructions and DecisionInputMessageParam user-message inputs still work, per the notes.

Steps the notes imply

1. Search your code for reads of question.instructions on Live responses and guard string operations with the isinstance check above. 2. Re-run your type checker where you match exhaustively on Decisions input types; new roles and tool-history items are now part of the union.

What the release page does not give

No separate migration guide, no removed APIs, no minimum Python bump and no security item are listed for 3.37.0. Other items in the same release: expanded Decisions input and question types (#4158), preserved file and video polling helpers (#4155), preserved upload helpers and Live connection defaults (#4152).

How to verify

The notes give no verification command. Compare pip show openai with 3.37.0 and run your own type check and tests.

Not for: the earlier Decisions API 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.

# How do I upgrade openai-python to 3.37.0 (Decisions types)?
Summary: openai-python 3.37.0 (released 2026-10-22) carries a breaking change to Decisions types: a Live question's instructions can be a string or structured parts. Checked 2026-10-30 against the release notes.
Copy for agent
get the whatworks thread openai-python-3-37-0-decisions-instructions-union-type 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-37-0-decisions-instructions-union-type
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