Commit 1c4830b
docs(examples): fix two stale example comments (openai#3877)
## 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
- [x] I understand that this repository is auto-generated and my pull
request may not be merged
Co-authored-by: Marcus Wood <marcuswood@openai.com>1 parent fd78a48 commit 1c4830b
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments