diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5c3e8eb512..27bf032fe4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.92.2" + ".": "1.92.3" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 07aa52577e..cb7aea1814 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 111 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a473967d1766dc155994d932fbc4a5bcbd1c140a37c20d0a4065e1bf0640536d.yml openapi_spec_hash: 67cdc62b0d6c8b1de29b7dc54b265749 -config_hash: e74d6791681e3af1b548748ff47a22c2 +config_hash: 05c7d4a6f4d5983fe9550457114b47dd diff --git a/CHANGELOG.md b/CHANGELOG.md index 355bb287d9..ac283868ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.92.3 (2025-06-27) + +Full Changelog: [v1.92.2...v1.92.3](https://github.com/openai/openai-python/compare/v1.92.2...v1.92.3) + +### Bug Fixes + +* **client:** avoid encoding error with empty API keys ([5a3e64e](https://github.com/openai/openai-python/commit/5a3e64e0cc761dbaa613fb22ec16e7e73c3bcf72)) + + +### Documentation + +* **examples/realtime:** mention macOS requirements ([#2142](https://github.com/openai/openai-python/issues/2142)) ([27bf6b2](https://github.com/openai/openai-python/commit/27bf6b2a933c61d5ec23fd266148af888f69f5c1)) + ## 1.92.2 (2025-06-26) Full Changelog: [v1.92.1...v1.92.2](https://github.com/openai/openai-python/compare/v1.92.1...v1.92.2) diff --git a/examples/realtime/push_to_talk_app.py b/examples/realtime/push_to_talk_app.py index 8dc303a83a..02d3f762d0 100755 --- a/examples/realtime/push_to_talk_app.py +++ b/examples/realtime/push_to_talk_app.py @@ -5,6 +5,8 @@ # environment variable set, you can run this example with just # # # # `./examples/realtime/push_to_talk_app.py` # +# # +# On Mac, you'll also need `brew install portaudio ffmpeg` # #################################################################### # # /// script diff --git a/pyproject.toml b/pyproject.toml index 177fc600b9..2f44e58aac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "1.92.2" +version = "1.92.3" description = "The official Python library for the openai API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/openai/_client.py b/src/openai/_client.py index f3a83afec3..ed9b46f4b0 100644 --- a/src/openai/_client.py +++ b/src/openai/_client.py @@ -283,6 +283,9 @@ def qs(self) -> Querystring: @override def auth_headers(self) -> dict[str, str]: api_key = self.api_key + if not api_key: + # if the api key is an empty string, encoding the header will fail + return {} return {"Authorization": f"Bearer {api_key}"} @property @@ -599,6 +602,9 @@ def qs(self) -> Querystring: @override def auth_headers(self) -> dict[str, str]: api_key = self.api_key + if not api_key: + # if the api key is an empty string, encoding the header will fail + return {} return {"Authorization": f"Bearer {api_key}"} @property diff --git a/src/openai/_version.py b/src/openai/_version.py index 709e848243..81494049e6 100644 --- a/src/openai/_version.py +++ b/src/openai/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "openai" -__version__ = "1.92.2" # x-release-please-version +__version__ = "1.92.3" # x-release-please-version