From 9b63d3c1b54cd9b796cc0fa5c5e8fc8f21d51f98 Mon Sep 17 00:00:00 2001 From: simpleqt <89645338+simpleqt@users.noreply.github.com> Date: Wed, 9 Sep 2026 00:44:50 +0800 Subject: [PATCH] docs and examples: fix stale openai.OpenAI reference, a verb typo, and poetry shebangs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- examples/async_demo.py | 2 +- examples/demo.py | 2 +- examples/streaming.py | 2 +- examples/video.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/async_demo.py b/examples/async_demo.py index 438706da44..1c9f6505ab 100755 --- a/examples/async_demo.py +++ b/examples/async_demo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env -S poetry run python +#!/usr/bin/env -S uv run python import asyncio diff --git a/examples/demo.py b/examples/demo.py index e67b276deb..b08df58b20 100755 --- a/examples/demo.py +++ b/examples/demo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env -S poetry run python +#!/usr/bin/env -S uv run python from openai import OpenAI diff --git a/examples/streaming.py b/examples/streaming.py index 9a84891a83..58b72e151f 100755 --- a/examples/streaming.py +++ b/examples/streaming.py @@ -1,4 +1,4 @@ -#!/usr/bin/env -S poetry run python +#!/usr/bin/env -S uv run python import asyncio diff --git a/examples/video.py b/examples/video.py index b9346a7e77..b1d6528028 100644 --- a/examples/video.py +++ b/examples/video.py @@ -1,4 +1,4 @@ -#!/usr/bin/env -S poetry run python +#!/usr/bin/env -S uv run python import asyncio