From 9ac42a8bf75b4f7709e6d11caa0fb019131c9502 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 18:33:45 +0000 Subject: [PATCH 1/2] chore(api): disable stainless codeflow --- .stats.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index ec9ac4b5dd..7df3cd1d74 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 279 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-31fcc3c97e5c432754bf0b72c5d5abbe1493573f0ca888af914baf81188b453e.yml -openapi_spec_hash: f867849a0c2a9c9b838d21f1c720a9e3 -config_hash: fce3820c4f95b555e486349bc7d297d8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-109bc94104d50d22b22a44ea4d9fdf9ee5ecb09fe8cafbab10c4651cfb1b7d23.yml +openapi_spec_hash: d342651bd77c6cd6ea10a9d889b35bb8 +config_hash: 017f3e1596129b7f06acd753e8a0d6e2 From ae028fcc1fd1e49c7749bfaf00c16dfc5a6d1bd7 Mon Sep 17 00:00:00 2001 From: Lucky Verma Date: Fri, 8 May 2026 09:19:57 +0000 Subject: [PATCH 2/2] chore(examples): add -S to env shebangs for portability Five executable examples use an env shebang without the -S flag: examples/audio.py examples/speech_to_text.py examples/text_to_speech.py examples/realtime/realtime.py examples/realtime/push_to_talk_app.py CONTRIBUTING.md shows the canonical form as #!/usr/bin/env -S rye run python. Without -S the kernel passes the whole interpreter string to env as one argument, so env looks for a program named 'rye run python' and the script fails. This affects GNU env as well as BSD env. The first four use the rye shebang; push_to_talk_app.py has the same defect with 'uv run'. Only shebang lines change; executable modes are unchanged. --- examples/audio.py | 2 +- examples/realtime/push_to_talk_app.py | 2 +- examples/realtime/realtime.py | 2 +- examples/speech_to_text.py | 2 +- examples/text_to_speech.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/audio.py b/examples/audio.py index af41fe601b..bee1c66f99 100755 --- a/examples/audio.py +++ b/examples/audio.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python from pathlib import Path diff --git a/examples/realtime/push_to_talk_app.py b/examples/realtime/push_to_talk_app.py index ea00ac28af..9516d8dc60 100755 --- a/examples/realtime/push_to_talk_app.py +++ b/examples/realtime/push_to_talk_app.py @@ -1,4 +1,4 @@ -#!/usr/bin/env uv run +#!/usr/bin/env -S uv run #################################################################### # Sample TUI app with a push to talk interface to the Realtime API # # If you have `uv` installed and the `OPENAI_API_KEY` # diff --git a/examples/realtime/realtime.py b/examples/realtime/realtime.py index 214961e54c..a830e6d2ed 100755 --- a/examples/realtime/realtime.py +++ b/examples/realtime/realtime.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import asyncio from openai import AsyncOpenAI diff --git a/examples/speech_to_text.py b/examples/speech_to_text.py index cc3f56b424..ed007099c7 100755 --- a/examples/speech_to_text.py +++ b/examples/speech_to_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import asyncio diff --git a/examples/text_to_speech.py b/examples/text_to_speech.py index ac8b12b0ab..1603eb3391 100755 --- a/examples/text_to_speech.py +++ b/examples/text_to_speech.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import time import asyncio