-
Notifications
You must be signed in to change notification settings - Fork 497
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi, I have a project that uses the Realtime API & Agents SDK:
https://github.com/hortfrancis/conversational-gujarati-prototype-01
We had a bug that confused us for a while, but unfortunately I'm not able to reproduce it.
In case it confuses others (especially newer developers who want to use this library), you might want to check the following edge case:
- Make a new OpenAI Platform account
- Make a new API key
- Do not set up billing or add any credits yet
- Use the API key in a request to
https://api.openai.com/v1/realtime/client_secretsto make an ephemeral key - Attempt to use the ephemeral key in a new Realtime session
We didn't see any errors in our browser console or our local Vite process and it stumped us. It may be an uncaught edge case for the Realtime API: no billing set up or credits added, so failing silently.
Our implementations here:
- https://github.com/hortfrancis/conversational-gujarati-prototype-01/blob/main/src/app/hooks/useRealtimeAgent.ts
- https://github.com/hortfrancis/conversational-gujarati-prototype-01/blob/main/src/worker/index.ts
Hope that's useful 🫡
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working