Skip to content

docs and examples: fix stale openai.OpenAI reference, a verb typo, and poetry shebangs - #3821

Open
simpleqt wants to merge 1 commit into
openai:mainfrom
simpleqt:docs-and-lib/wording-fixes
Open

docs and examples: fix stale openai.OpenAI reference, a verb typo, and poetry shebangs#3821
simpleqt wants to merge 1 commit into
openai:mainfrom
simpleqt:docs-and-lib/wording-fixes

Conversation

@simpleqt

@simpleqt simpleqt commented Sep 8, 2026

Copy link
Copy Markdown

Three small hand-written fixes (all outside the generator's scope — helpers.md, src/openai/lib/, examples/):

  • helpers.md streaming snippet: client = openai.OpenAI() raised NameError as written — the block imports OpenAI directly (copied from the earlier snippet where import openai exists)
  • src/openai/lib/_pydantic.py: ValueError message "Expected : {ref} to resolved to a dictionary" → "to resolve"
  • examples/{demo,async_demo,streaming,video}.py: shebangs still #!/usr/bin/env -S poetry run python while CONTRIBUTING.md prescribes uv run python (26/30 examples already migrated); the documented ./examples/<script>.py invocation failed without poetry installed

…d poetry shebangs

- helpers.md's second streaming snippet used client = openai.OpenAI()
  without importing the module (copied from the earlier snippet)
- _pydantic.py: 'Expected $ref ... to resolved' → 'to resolve'
- 4 example shebangs still said 'poetry run python'; CONTRIBUTING.md
  prescribes 'uv run python' (26/30 examples already use it)
Copilot AI lite review requested due to automatic review settings September 8, 2026 16:45
@simpleqt
simpleqt requested a review from a team as a code owner September 8, 2026 16:45

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