Skip to content

Instantly share code, notes, and snippets.

@NN1985
NN1985 / gist:a0712821269259061177c6abb08e8e0a
Last active August 20, 2024 03:36
ElevenLabs Text Input Streaming demo for LLMs
import openai
import elevenlabs
# Uncomment the following lines to set the API keys
openai.api_key = "key_here"
elevenlabs.set_api_key("key_here")
def write(prompt: str):
for chunk in openai.ChatCompletion.create(
model="gpt-3.5-turbo-0301",