Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting OpenAI's Realtime Console to a Custom WebSocket Proxy #60

Open
danieloraca opened this issue Oct 15, 2024 · 0 comments
Open

Comments

@danieloraca
Copy link

danieloraca commented Oct 15, 2024

I'm attempting to connect OpenAI's realtime-console directly to a WebSocket proxy service that I’ve deployed on AWS EC2. The proxy service forwards WebSocket messages between clients and OpenAI’s GPT model.

The WebSocket URL format I'm using is ws://{the_ip}:8000/ws.

I've tried setting REACT_APP_LOCAL_RELAY_SERVER_URL=ws://{the_ip}:8000/ws in the .env file, but I'm encountering errors like:

src/lib/wavtools/lib/analysis/audio_analysis.js
  Line 203:1:  'globalThis' is not defined  no-undef

also, on refresh

Could not connect to "ws://{the_ip}:8000/ws"
    at WebSocket.connectionErrorHandler 

Is this the correct way to configure the LOCAL_RELAY_SERVER_URL for the WebSocket proxy? Any guidance would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant