Skip to content

docs(examples): fix two stale example comments - #3877

Open
simpleqt wants to merge 1 commit into
openai:mainfrom
simpleqt:sq917-example-comments
Open

simpleqt wants to merge 1 commit into
openai:mainfrom
simpleqt:sq917-example-comments

Conversation

@simpleqt

Copy link
Copy Markdown
Contributor

Summary

  • examples/parsing_tools_stream.py:27: the comment credits .parse_stream() for the tool-call deserialization, but no such method exists in the SDK (grep -rn parse_stream src/openai → 0) — the wrapping comes from pydantic_function_tool(...). The comment drifted when the example moved from client.beta.chat.completions.stream.
  • examples/realtime/audio_util.py:16: CHUNK_LENGTH_S = 0.05 # 100ms — 0.05 s is 50 ms (1200 frames at the module's 24 kHz rate). Comment corrected.

Comment-only changes in examples/.

Checklist

  • I understand that this repository is auto-generated and my pull request may not be merged

- parsing_tools_stream.py referenced a .parse_stream() method that
  doesn't exist in the SDK; deserialization comes from the
  pydantic_function_tool(...) wrapping.
- realtime/audio_util.py said 100ms for CHUNK_LENGTH_S = 0.05 (50ms at
  the module's 24kHz sample rate).
Copilot AI lite review requested due to automatic review settings September 16, 2026 17:40
@simpleqt
simpleqt requested a review from a team as a code owner September 16, 2026 17:40

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