Skip to content

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