You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an app up and running within about 20 minutes by tweaking the realtime console project, great fun 🤣
It occurs to me though that the client on the front end has too much logic in it – tools, etc. Are there plans to create a relay that encapsulates the logic on the server? With a smaller client for the front end that merely sends and receives audio and other sorts of messages?
The RealtimeRelay instantiates its own RealtimeClient, so shouldn't be too arduous to trim down the front end version.
I am going to work on this over the weekend, but are there plans for the release of something more official along these lines?
The text was updated successfully, but these errors were encountered:
I mean the sample code, everything is on the client. The server is a mere relay to hide the credentials.
But in my mind, having the prompts, the tool definitions and the logic and everything else in the client is not ideal. I would like to create an adapter for web apps so all this can be on the server, my own API.
Looking at the reference app, the RealtimeClient is instantiated on both the client and server, so one is just a proxy really. Could just extract the bits I need for the client and add an alternative message sanding capability to talk to the API, rather than that which talks to the LLM.
This is something I'd really like to work on; we're queueing up ideas. I'll cc @bakks and @jordans-openai for visibility that folks are interested in something a little more fully formed and leave this open for now!
I got an app up and running within about 20 minutes by tweaking the realtime console project, great fun 🤣
It occurs to me though that the client on the front end has too much logic in it – tools, etc. Are there plans to create a relay that encapsulates the logic on the server? With a smaller client for the front end that merely sends and receives audio and other sorts of messages?
The
RealtimeRelay
instantiates its ownRealtimeClient
, so shouldn't be too arduous to trim down the front end version.I am going to work on this over the weekend, but are there plans for the release of something more official along these lines?
The text was updated successfully, but these errors were encountered: