p-i- / openai-realtime-py

Python implementation of OpenAI's realtime API
MIT License
28 stars 1 forks source link

How to use this in a chat completion way? #1

Open baichuanzhou opened 2 weeks ago

baichuanzhou commented 2 weeks ago

Hey, thanks for the implementation. Neat!

I wonder if I can use the real time api in a chat completion manner? Specifically, I want to send a request audio and in return get a text completion to my audio request. I understand openai officially hasn't rolled out audio chat completion api. How would you modify your codebase to achieve such funcationality?

p-i- commented 2 weeks ago

hmm. So you feed in the first part of the chat, and the AI responds with a "hot-start"? Sure you can hot-start the realtime API. I don't think I'll be pushing this python proto-code much further in the near future as I'm looking at C++ now, but sure it's doable!