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

Websocket Connection Failing on Chrome with error (Error : Could not connect to "wss://api.openai.com/v1/realtime) #95

Open
invens-devuser1 opened this issue Jan 18, 2025 · 1 comment

Comments

@invens-devuser1
Copy link

In chrome. We get the following error: (Error : Could not connect to "wss://api.openai.com/v1/realtime), but it worked earlier

Surprisingly, the code works just fine on Safari.

Please provide guidance.

Code:

import { RealtimeClient } from '@openai/realtime-api-beta';

const clientRef = ref<RealtimeClient | null>(null);
clientRef.value = new RealtimeClient({ 
    apiKey: import.meta.env.VITE_APP_OPENAI_KEY,
    dangerouslyAllowAPIKeyInBrowser: true
  });

@sivaprasad2507
Copy link

Same issue here.

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

2 participants