-
Notifications
You must be signed in to change notification settings - Fork 321
Open
Labels
Description
Describe the bug
When using the JS Realtime SDK to establish a WebRTC connection with a client_secret
generated on the backend, I want to implement Realtime server controls as described in the documentation.
However, I cannot extract the WebRTC Call ID from the Location
header as described in the docs.
The SDK encapsulates the request to https://api.openai.com/v1/realtime/calls
, and the sdpResponse
object (reference) is not exposed to the SDK caller.
This makes it impossible to retrieve the Call ID that is required to interact with the Realtime server controls API.
Debug information
- Agents SDK version: v0.1.3
- Runtime environment: React 18.3
Steps to reproduce
- Use the JS Realtime SDK to create a WebRTC connection with a
client_secret
. - Attempt to follow the Realtime server controls documentation, which requires retrieving the WebRTC Call ID from the
Location
header. - Notice that the SDK does not expose the
sdpResponse
or the Call ID to the caller.
Expected behavior
- The SDK should provide a way to access the WebRTC Call ID returned in the
Location
header when creating a call. - This would allow developers to use the Call ID to integrate with the Realtime server controls API as documented.
skovranek and AnthonyASanchez