#streaming text to openai

1 messages · Page 1 of 1 (latest)

coarse sapphire
#

how would i go about streaming text to open ai i have included the example microphone program using websockets in python wondering how to access the info from deepgram "text" and carry out logic using open ai

surreal barnBOT
#

Thanks for asking your question. Please be sure to reply with as much detail as possible so we can assist you efficiently. Such as:

  • Provide the request_id if you've a question about a transcription response.
  • The options you used or the api.deepgram.com URL you sent your request to, including parameters.
  • Any code snippets you can include.
  • Any audio you can include, or if you can't share it here please email it to us at [email protected] and provide a link to this thread.
tiny magnet
#

the Transcription event will contain text. you can send that to an LLM. unfortunately i don't know of an LLM which has a moving context window, or streaming input, or ability to buffer input. you'll need to build that yourself

coarse sapphire
#

ok

#

you didn'

#

mention what is the transcription event