From be82288f3c88c10c9ac20ba3b8cb53b5c7a4e2f9 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:12:52 +0000 Subject: [PATCH 1/3] fix(client): retry if SSLWantReadError occurs in the async client (#804) --- src/openai/_base_client.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/openai/_base_client.py b/src/openai/_base_client.py index b2fe242634..3db8b6fa35 100644 --- a/src/openai/_base_client.py +++ b/src/openai/_base_client.py @@ -1320,12 +1320,6 @@ async def _request( if retries > 0: return await self._retry_request(options, cast_to, retries, stream=stream, stream_cls=stream_cls) raise APITimeoutError(request=request) from err - except httpx.ReadTimeout as err: - # We explicitly do not retry on ReadTimeout errors as this means - # that the server processing the request has taken 60 seconds - # (our default timeout). This likely indicates that something - # is not working as expected on the server side. - raise except httpx.TimeoutException as err: if retries > 0: return await self._retry_request(options, cast_to, retries, stream=stream, stream_cls=stream_cls) From 598a55ca6f9967a4ed1712f54ef7d6b99e4c0e33 Mon Sep 17 00:00:00 2001 From: Mikyo King Date: Mon, 13 Nov 2023 11:19:50 -0700 Subject: [PATCH 2/3] docs(readme): fix broken azure_ad notebook link (#781) The notebook link in the main README pointed an old directory. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e8bf6ecec..f3698a9ff4 100644 --- a/README.md +++ b/README.md @@ -489,7 +489,7 @@ In addition to the options provided in the base `OpenAI` client, the following o - `azure_ad_token` - `azure_ad_token_provider` -An example of using the client with Azure Active Directory can be found [here](https://github.com/openai/openai-python/blob/v1/examples/azure_ad.py). +An example of using the client with Azure Active Directory can be found [here](https://github.com/openai/openai-python/blob/main/examples/azure_ad.py). ## Versioning From 582695c539610ded811c4493c347ec16450bd790 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:26:21 +0000 Subject: [PATCH 3/3] release: 1.2.4 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/openai/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a237539253..862a05b695 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.2.3" + ".": "1.2.4" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 955fe7a405..9836a29e50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.2.4 (2023-11-13) + +Full Changelog: [v1.2.3...v1.2.4](https://github.com/openai/openai-python/compare/v1.2.3...v1.2.4) + +### Bug Fixes + +* **client:** retry if SSLWantReadError occurs in the async client ([#804](https://github.com/openai/openai-python/issues/804)) ([be82288](https://github.com/openai/openai-python/commit/be82288f3c88c10c9ac20ba3b8cb53b5c7a4e2f9)) + + +### Documentation + +* **readme:** fix broken azure_ad notebook link ([#781](https://github.com/openai/openai-python/issues/781)) ([598a55c](https://github.com/openai/openai-python/commit/598a55ca6f9967a4ed1712f54ef7d6b99e4c0e33)) + ## 1.2.3 (2023-11-10) Full Changelog: [v1.2.2...v1.2.3](https://github.com/openai/openai-python/compare/v1.2.2...v1.2.3) diff --git a/pyproject.toml b/pyproject.toml index e27c6de9ab..dc08634e4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "1.2.3" +version = "1.2.4" description = "The official Python library for the openai API" readme = "README.md" license = "Apache-2.0" diff --git a/src/openai/_version.py b/src/openai/_version.py index ebf5d47703..f22b1aae3f 100644 --- a/src/openai/_version.py +++ b/src/openai/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. __title__ = "openai" -__version__ = "1.2.3" # x-release-please-version +__version__ = "1.2.4" # x-release-please-version