Open
Description
Problem:
I am facing an issue when trying to connect to OpenAI's Realtime API through WebSocket in the twilio-openai-realtime-voice-assistant
project.
Error details:
- The error occurs during the WebSocket connection initialization.
- The specific error message is:
TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'extra_headers'
.
Steps to reproduce:
- Clone the repository and set up the environment as instructed.
- Run the application using the
uvicorn
server. - Attempt to make the WebSocket connection to OpenAI API.
Expected result:
The WebSocket connection should establish successfully, and the server should be able to send and receive audio data.
Actual result:
The connection fails with the error message mentioned above.
Additional Information:
- The issue seems to be related to the use of
extra_headers
in thewebsockets.connect()
function. - I am using Python 3.13 and the latest version of the
websockets
package.
Error log file
I try to solve everything it won't work
i copy and make exactly in documentation but errors
Metadata
Metadata
Assignees
Labels
No labels