Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3c6ddeb

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 2adf111 commit 3c6ddeb

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)

AltStyle によって変換されたページ (->オリジナル) /