Skip to content

Commit be18a2b

Browse files
Update session_update_event.py
syncing with Agents SDK (https://github.com/openai/openai-agents-python/blob/main/src/agents/realtime/config.py), enabling the session model config to accept different models (e.g., gpt-4o-realtime-preview-2025-08-12, gpt-realtime)
1 parent 3154a78 commit be18a2b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/openai/types/beta/realtime/session_update_event.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,16 @@ class Session(BaseModel):
224224
"""
225225

226226
model: Optional[
227-
Literal[
228-
"gpt-4o-realtime-preview",
229-
"gpt-4o-realtime-preview-2024-10-01",
230-
"gpt-4o-realtime-preview-2024-12-17",
231-
"gpt-4o-realtime-preview-2025-06-03",
232-
"gpt-4o-mini-realtime-preview",
233-
"gpt-4o-mini-realtime-preview-2024-12-17",
227+
Union[
228+
Literal[
229+
"gpt-4o-realtime-preview",
230+
"gpt-4o-realtime-preview-2024-10-01",
231+
"gpt-4o-realtime-preview-2024-12-17",
232+
"gpt-4o-realtime-preview-2025-06-03",
233+
"gpt-4o-mini-realtime-preview",
234+
"gpt-4o-mini-realtime-preview-2024-12-17",
235+
],
236+
str,
234237
]
235238
] = None
236239
"""The Realtime model used for this session."""

0 commit comments

Comments
 (0)