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] 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)