Skip to content

Commit

Permalink
fix(client/async): correctly retry in all cases (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy authored and stainless-app[bot] committed Oct 22, 2024
1 parent 38d87a3 commit a366120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openai/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ async def _request(
except Exception as err:
log.debug("Encountered Exception", exc_info=True)

if retries_taken > 0:
if remaining_retries > 0:
return await self._retry_request(
input_options,
cast_to,
Expand Down

0 comments on commit a366120

Please sign in to comment.