Skip to content

Log the remaining retries info at info log level #2460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Amnish04
Copy link

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

I've made some changes to log the remaining requests count at the info level so developers don't have to set their log level to debug and see unnecessary fluff for this simple piece of information. Specifically, changes were made to logs in SyncAPIClient._sleep_for_retry and AsyncAPIClient._sleep_for_retry.

I've tested this locally with examples/demo.py with OPENAI_LOG set to info and seems to work fine.

image

Additional context & links

This fixes #2404

Note: I am not sure if this was meant to be generated or hand-edited, please let me know if I can do anything about it.

@Amnish04 Amnish04 requested a review from a team as a code owner July 12, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log number of retries at INFO level
1 participant