Skip to content

Commit

Permalink
put exponential backoff as accordian
Browse files Browse the repository at this point in the history
  • Loading branch information
LinaLam committed May 13, 2024
1 parent 00cbf57 commit 6b35ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/features/advanced-usage/retries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Retrying requests is a common best practice when dealing with overloaded servers

For more information on error codes, see the [OpenAI API error codes documentation](https://platform.openai.com/docs/guides/error-codes/api-errors).

### Exponential Backoff

To effectively deal with retries, we use a strategy called **exponential backoff**. Exponential backoff involves increasing the wait time between retries exponentially, which helps to spread out the request load and gives the server a chance to recover. This is done by multiplying the wait time by a factor (default is 2) for each subsequent retry.
<Accordion title="Learn About Exponential Backoff">
To effectively deal with retries, we use a strategy called **exponential backoff**. Exponential backoff involves increasing the wait time between retries exponentially, which helps to spread out the request load and gives the server a chance to recover. This is done by multiplying the wait time by a factor (default is 2) for each subsequent retry.
</Accordion>

### Why Retries
- Overcoming rate limits and server overload.
Expand Down

0 comments on commit 6b35ee6

Please sign in to comment.