use OPENAI_API_KEY instead of OPENAI_CHATGPT_API_KEY

Fixes #77
This commit is contained in:
Aleix Conchillo Flaqué
2024-03-20 15:26:11 -07:00
parent 520cee273f
commit cf5d516d51
12 changed files with 12 additions and 12 deletions

View File

@@ -113,7 +113,7 @@ async def main(room_url: str, token):
)
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-turbo-preview")
ta = TalkingAnimation()

View File

@@ -310,7 +310,7 @@ async def main(room_url: str, token):
messages = []
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-1106-preview",
)
# tts = DeepgramTTSService(

View File

@@ -203,7 +203,7 @@ async def main(room_url: str, token):
story = []
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-1106-preview",
) # gpt-4-1106-preview
tts = ElevenLabsTTSService(

View File

@@ -73,7 +73,7 @@ async def main(room_url: str, token):
voice="es-ES-AlvaroNeural",
)
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-turbo-preview")
sa = SentenceAggregator()
tp = TranslationProcessor("Spanish")