Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/openai/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,9 +1060,9 @@ def _sleep_for_retry(
) -> None:
remaining_retries = max_retries - retries_taken
if remaining_retries == 1:
log.debug("1 retry left")
log.info("1 retry left")
else:
log.debug("%i retries left", remaining_retries)
log.info("%i retries left", remaining_retries)

timeout = self._calculate_retry_timeout(remaining_retries, options, response.headers if response else None)
log.info("Retrying request to %s in %f seconds", options.url, timeout)
Expand Down Expand Up @@ -1607,9 +1607,9 @@ async def _sleep_for_retry(
) -> None:
remaining_retries = max_retries - retries_taken
if remaining_retries == 1:
log.debug("1 retry left")
log.info("1 retry left")
else:
log.debug("%i retries left", remaining_retries)
log.info("%i retries left", remaining_retries)

timeout = self._calculate_retry_timeout(remaining_retries, options, response.headers if response else None)
log.info("Retrying request to %s in %f seconds", options.url, timeout)
Expand Down