Skip to content

Commit e8a9d43

Browse files
authored
Merge pull request #84 from daily-co/use-openai-api-key
use OPENAI_API_KEY instead of OPENAI_CHATGPT_API_KEY
2 parents 520cee2 + cf5d516 commit e8a9d43

12 files changed

+12
-12
lines changed

examples/foundational/02-llm-say-one-thing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def main(room_url):
3636
)
3737

3838
llm = OpenAILLMService(
39-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
39+
api_key=os.getenv("OPENAI_API_KEY"),
4040
model="gpt-4-turbo-preview")
4141

4242
messages = [

examples/foundational/05-sync-speech-and-image.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def main(room_url):
8282
)
8383

8484
llm = OpenAILLMService(
85-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
85+
api_key=os.getenv("OPENAI_API_KEY"),
8686
model="gpt-4-turbo-preview")
8787

8888
imagegen = FalImageGenService(

examples/foundational/05a-local-sync-speech-and-text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def main(room_url):
3838
)
3939

4040
llm = OpenAILLMService(
41-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
41+
api_key=os.getenv("OPENAI_API_KEY"),
4242
model="gpt-4-turbo-preview")
4343

4444
dalle = FalImageGenService(

examples/foundational/06-listen-and-respond.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def main(room_url: str, token):
4444
)
4545

4646
llm = OpenAILLMService(
47-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
47+
api_key=os.getenv("OPENAI_API_KEY"),
4848
model="gpt-4-turbo-preview")
4949
fl = FrameLogger("Inner")
5050
fl2 = FrameLogger("Outer")

examples/foundational/06a-image-sync.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def main(room_url: str, token):
6565
)
6666

6767
llm = OpenAILLMService(
68-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
68+
api_key=os.getenv("OPENAI_API_KEY"),
6969
model="gpt-4-turbo-preview")
7070

7171
img = FalImageGenService(

examples/foundational/07-interruptible.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def main(room_url: str, token):
4646
)
4747

4848
llm = OpenAILLMService(
49-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
49+
api_key=os.getenv("OPENAI_API_KEY"),
5050
model="gpt-4-turbo-preview")
5151

5252
pipeline = Pipeline([FrameLogger(), llm, FrameLogger(), tts])

examples/foundational/10-wake-word.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async def main(room_url: str, token):
135135
transport._camera_height = 1280
136136

137137
llm = OpenAILLMService(
138-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
138+
api_key=os.getenv("OPENAI_API_KEY"),
139139
model="gpt-4-turbo-preview")
140140

141141
tts = ElevenLabsTTSService(

examples/foundational/11-sound-effects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def main(room_url: str, token):
8484
)
8585

8686
llm = OpenAILLMService(
87-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
87+
api_key=os.getenv("OPENAI_API_KEY"),
8888
model="gpt-4-turbo-preview")
8989

9090
tts = ElevenLabsTTSService(

examples/starter-apps/chatbot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async def main(room_url: str, token):
113113
)
114114

115115
llm = OpenAILLMService(
116-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
116+
api_key=os.getenv("OPENAI_API_KEY"),
117117
model="gpt-4-turbo-preview")
118118

119119
ta = TalkingAnimation()

examples/starter-apps/patient-intake.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ async def main(room_url: str, token):
310310
messages = []
311311

312312
llm = OpenAILLMService(
313-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
313+
api_key=os.getenv("OPENAI_API_KEY"),
314314
model="gpt-4-1106-preview",
315315
)
316316
# tts = DeepgramTTSService(

examples/starter-apps/storybot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async def main(room_url: str, token):
203203
story = []
204204

205205
llm = OpenAILLMService(
206-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
206+
api_key=os.getenv("OPENAI_API_KEY"),
207207
model="gpt-4-1106-preview",
208208
) # gpt-4-1106-preview
209209
tts = ElevenLabsTTSService(

examples/starter-apps/translator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def main(room_url: str, token):
7373
voice="es-ES-AlvaroNeural",
7474
)
7575
llm = OpenAILLMService(
76-
api_key=os.getenv("OPENAI_CHATGPT_API_KEY"),
76+
api_key=os.getenv("OPENAI_API_KEY"),
7777
model="gpt-4-turbo-preview")
7878
sa = SentenceAggregator()
7979
tp = TranslationProcessor("Spanish")

0 commit comments

Comments
 (0)