Skip to content

Handle null response output_text items#3099

Open
MukundaKatta wants to merge 1 commit intoopenai:mainfrom
MukundaKatta:codex/openai-python-null-output-text
Open

Handle null response output_text items#3099
MukundaKatta wants to merge 1 commit intoopenai:mainfrom
MukundaKatta:codex/openai-python-null-output-text

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • allow response output_text items to carry null text values from the API
  • ignore null text entries in Response.output_text
  • skip structured parsing for null output_text content while still parsing valid siblings

Testing

  • .venv313/bin/python -m pytest tests/lib/responses/test_responses.py -k "output_text or parse_response_skips_null_output_text" -o addopts=""
  • .venv313/bin/python -c "import openai; print(openai.version)"

Closes #3063
Closes #3011

@MukundaKatta MukundaKatta requested a review from a team as a code owner April 18, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant