Skip to content

Conversation

LuminaX-alt
Copy link
Owner

Fix async streaming Responses API emitting None content parts

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

…ai#2313)

Fix async streaming Responses API emitting None content parts

- Added fallback for `None` content values when parsing streamed events in `openai/resources/responses.py`
- Ensures filtered or redacted content segments produce an empty string instead of None
- Prevents type errors when consuming streamed `ResponseOutputMessage` objects
- Closes openai#2313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure Open AI Async filter results in None type content part

1 participant