Skip to content

Conversation

@sbera77
Copy link
Contributor

@sbera77 sbera77 commented Dec 25, 2025

Fixes #2161

Description

Realtime API's text mode sends content in output_text but the code only checked for text. This caused empty AssistantMessageItem.content in RealtimeHistoryUpdated/RealtimeHistoryAdded events.

Changes

  • Change part.get("type") == "text" to part.get("type") in ("text", "output_text") (as suggested in the issue)
  • Add a test for the same

Tests

All tests pass.

@seratch seratch added bug Something isn't working feature:realtime labels Dec 27, 2025
@seratch seratch merged commit c4ed605 into openai:main Dec 27, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:realtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AssistantMessageItem has empty content in RealtimeHistoryUpdated/RealtimeHistoryAdded events

2 participants