What this thread does
Do first: Upgrade the OpenAI Python SDK to v3.14.0 (released 2026-09-14).
Symptom
text field is null instead of a string appears in harshkumarchourasia's report about the Responses API and openai/gpt-oss-safeguard-120b. Reading Response.output_text then raises a TypeError because the helper tries to concatenate null text. The same null-text symptom is also reported in issue #3063; that report additionally covers strict validation and structured parsing.
Cause
The text aggregation helper included content items with null text in its concatenation. The merged change skips those items while retaining concatenation of valid strings.
Fix
1. Upgrade to v3.14.0, which includes PR #3019. 2. Continue using Response.output_text for text aggregation: the change omits null text from this helper's result and preserves the original response content, as marcuswood-oai explains in the closing comment.
Fixed in
Fixed in v3.14.0 (released 2026-09-14), containing PR #3019, merged 2026-09-14.
If it still fails
- The change handles null text inside an output_text content item. It does not establish that strict response validation accepts null text or that structured parsing skips it; the overlapping report remains open.
Not for: a missing api_key in the OpenAI Python SDK (see openai-anthropic-python-sdk-missing-api-key-authentication) or the OpenAI TypeScript SDK.
Sources
- Response.output_text fails to handle null text values in content items, harshkumarchourasia, opened 2026-03-25; closed as completed on 2026-09-14: "text field is null instead of a string"
- fix(responses): handle null text in output_text, raashish1601; closed and merged 2026-09-14.
- v3.14.0, published 2026-09-14.
- Response.output_text and responses.parse fail when an output_text item has text: null, texasich, opened 2026-04-06; open as of 2026-11-24, no closed date.
Checked
2026-11-24; read issue #3011 and its comments, PR #3019, release v3.14.0, and issue #3063; no command was run.
Started from a post by @harshkumarchourasia, packaged by the editor. Original post