Skip to content

Conversation

harjothkhara
Copy link

This pull request updates a comment in src/openai/_base_client.py to accurately describe the jitter applied to retry delays.

Previously, the comment said "plus-or-minus half a second" when the code actually scales the delay down by up to 25% (it multiplies by 1 - 0.25 * random()). This can mislead readers. The new comment reads: "Apply jitter by scaling the delay down by up to 25% to spread retries and avoid thundering‑herd effects."

No functional changes are introduced – just a documentation fix.

@harjothkhara harjothkhara requested a review from a team as a code owner August 19, 2025 00:45
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.

1 participant