From 9beb0b61c75f2fa48b9d1fa2389b6bdba2916376 Mon Sep 17 00:00:00 2001 From: simpleqt <89645338+simpleqt@users.noreply.github.com> Date: Wed, 9 Sep 2026 00:44:17 +0800 Subject: [PATCH] examples: fix broken Session import in the push-to-talk app openai.types.realtime.session does not exist, so the example raised ModuleNotFoundError at startup. The Session type is exported by openai.types.realtime.session_created_event. --- examples/realtime/push_to_talk_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/realtime/push_to_talk_app.py b/examples/realtime/push_to_talk_app.py index 28e8126b89..f1dc1164ed 100755 --- a/examples/realtime/push_to_talk_app.py +++ b/examples/realtime/push_to_talk_app.py @@ -41,7 +41,7 @@ from textual.containers import Container from openai import AsyncOpenAI -from openai.types.realtime.session import Session +from openai.types.realtime.session_created_event import Session from openai.resources.realtime.realtime import AsyncRealtimeConnection