Skip to content

Commit f26746c

Browse files
committed
chore(examples): update realtime model
closes #2020
1 parent e389279 commit f26746c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ from openai import AsyncOpenAI
275275
async def main():
276276
client = AsyncOpenAI()
277277

278-
async with client.beta.realtime.connect(model="gpt-4o-realtime-preview-2024-10-01") as connection:
278+
async with client.beta.realtime.connect(model="gpt-4o-realtime-preview") as connection:
279279
await connection.session.update(session={'modalities': ['text']})
280280

281281
await connection.conversation.item.create(
@@ -309,7 +309,7 @@ Whenever an error occurs, the Realtime API will send an [`error` event](https://
309309
```py
310310
client = AsyncOpenAI()
311311

312-
async with client.beta.realtime.connect(model="gpt-4o-realtime-preview-2024-10-01") as connection:
312+
async with client.beta.realtime.connect(model="gpt-4o-realtime-preview") as connection:
313313
...
314314
async for event in connection:
315315
if event.type == 'error':

examples/realtime/push_to_talk_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def on_mount(self) -> None:
152152
self.run_worker(self.send_mic_audio())
153153

154154
async def handle_realtime_connection(self) -> None:
155-
async with self.client.beta.realtime.connect(model="gpt-4o-realtime-preview-2024-10-01") as conn:
155+
async with self.client.beta.realtime.connect(model="gpt-4o-realtime-preview") as conn:
156156
self.connection = conn
157157
self.connected.set()
158158

0 commit comments

Comments
 (0)