This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |