Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9fe3f3f

Browse files
authoredOct 21, 2024··
fix(client/async): correctly retry in all cases (#1803)
1 parent 859c672 commit 9fe3f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/openai/_base_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ async def _request(
15911591
except Exception as err:
15921592
log.debug("Encountered Exception", exc_info=True)
15931593

1594-
if retries_taken > 0:
1594+
if remaining_retries > 0:
15951595
return await self._retry_request(
15961596
input_options,
15971597
cast_to,

0 commit comments

Comments
 (0)
Please sign in to comment.