Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/agents/realtime/openai_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,9 @@ async def _handle_ws_event(self, event: dict[str, Any]):
)
if not automatic_response_cancellation_enabled:
await self._cancel_response()
# Avoid sending conversation.item.truncate here; when GA is set to
# interrupt on VAD start, the server will handle truncation.
# Avoid sending conversation.item.truncate here. When the session's
# turn_detection.interrupt_response is enabled (GA default), the server emits
# conversation.item.truncated after the VAD start and takes care of history updates.
elif parsed.type == "response.created":
self._ongoing_response = True
await self._emit_event(RealtimeModelTurnStartedEvent())
Expand Down