Skip to content

Commit be82288

Browse files
fix(client): retry if SSLWantReadError occurs in the async client (#804)
1 parent e661da6 commit be82288

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/openai/_base_client.py

-6
Original file line numberDiff line numberDiff line change
@@ -1320,12 +1320,6 @@ async def _request(
13201320
if retries > 0:
13211321
return await self._retry_request(options, cast_to, retries, stream=stream, stream_cls=stream_cls)
13221322
raise APITimeoutError(request=request) from err
1323-
except httpx.ReadTimeout as err:
1324-
# We explicitly do not retry on ReadTimeout errors as this means
1325-
# that the server processing the request has taken 60 seconds
1326-
# (our default timeout). This likely indicates that something
1327-
# is not working as expected on the server side.
1328-
raise
13291323
except httpx.TimeoutException as err:
13301324
if retries > 0:
13311325
return await self._retry_request(options, cast_to, retries, stream=stream, stream_cls=stream_cls)

0 commit comments

Comments
 (0)