Skip to content

Commit

Permalink
Merge pull request #84 from daily-co/use-openai-api-key
Browse files Browse the repository at this point in the history
use OPENAI_API_KEY instead of OPENAI_CHATGPT_API_KEY
  • Loading branch information
aconchillo authored Mar 21, 2024
2 parents 520cee2 + cf5d516 commit e8a9d43
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/foundational/02-llm-say-one-thing.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def main(room_url):
)

llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-turbo-preview")

messages = [
Expand Down
2 changes: 1 addition & 1 deletion examples/foundational/05-sync-speech-and-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def main(room_url):
)

llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-turbo-preview")

imagegen = FalImageGenService(
Expand Down
2 changes: 1 addition & 1 deletion examples/foundational/05a-local-sync-speech-and-text.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def main(room_url):
)

llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-turbo-preview")

dalle = FalImageGenService(
Expand Down
2 changes: 1 addition & 1 deletion examples/foundational/06-listen-and-respond.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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")
fl = FrameLogger("Inner")
fl2 = FrameLogger("Outer")
Expand Down
2 changes: 1 addition & 1 deletion examples/foundational/06a-image-sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,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")

img = FalImageGenService(
Expand Down
2 changes: 1 addition & 1 deletion examples/foundational/07-interruptible.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,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")

pipeline = Pipeline([FrameLogger(), llm, FrameLogger(), tts])
Expand Down
2 changes: 1 addition & 1 deletion examples/foundational/10-wake-word.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async def main(room_url: str, token):
transport._camera_height = 1280

llm = OpenAILLMService(
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4-turbo-preview")

tts = ElevenLabsTTSService(
Expand Down
2 changes: 1 addition & 1 deletion examples/foundational/11-sound-effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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")

tts = ElevenLabsTTSService(
Expand Down
2 changes: 1 addition & 1 deletion examples/starter-apps/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion examples/starter-apps/patient-intake.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion examples/starter-apps/storybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion examples/starter-apps/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e8a9d43

Please sign in to comment.