Skip to content

examples: fix broken Session import in the push-to-talk app - #3820

Open
simpleqt wants to merge 1 commit into
openai:mainfrom
simpleqt:examples/fix-broken-realtime-import
Open

examples: fix broken Session import in the push-to-talk app#3820
simpleqt wants to merge 1 commit into
openai:mainfrom
simpleqt:examples/fix-broken-realtime-import

Conversation

@simpleqt

@simpleqt simpleqt commented Sep 8, 2026

Copy link
Copy Markdown

examples/realtime/push_to_talk_app.py imports from openai.types.realtime.session import Session — that module doesn't exist, so the linked TUI example raises ModuleNotFoundError at startup. The Session type is exported by openai.types.realtime.session_created_event (Session: TypeAlias = Union[RealtimeSessionCreateRequest, RealtimeTranscriptionSessionCreateRequest]), which is the type of event.session used at lines 182/187. Import repointed there.

Both src/openai/lib/ and examples/ are outside the generator's scope.

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.
Copilot AI lite review requested due to automatic review settings September 8, 2026 16:44
@simpleqt
simpleqt requested a review from a team as a code owner September 8, 2026 16:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants