Skip to content

openai-realtime: OpenAIRealtimeWebRTC conversation.item.retrieve has no audio for model responses #533

Description

@leecjohnny

Describe the bug

When using openai-realtime webrtc transport, conversation.item.retrieve does not retrieve audio for model responses

Debug information

"@openai/agents": "^0.1.6",
"@openai/agents-openai": "^0.1.6",
"@openai/agents-realtime": "^0.1.6",

Repro steps

  1. start RealtimeSession with webrtc transport
  2. have at least 1 audio model response (assistant) in history
  3. get the item id for the model response
  4. send conversation.item.retrieve for the id
  5. inspect the conversation.item.retrieved event for the item for base64 audio content

Expected behavior

If the model provided a response, the server representation returned by conversation.item.retrieved should have the audio in base64. The model is responding in audio, so the server representation should be in audio.

This is according to your docs:

retrieve event call: https://platform.openai.com/docs/api-reference/realtime-client-events/conversation/item/retrieve

retrieved event response: https://platform.openai.com/docs/api-reference/realtime-server-events/conversation/item/retrieved

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions