Skip to content

Commit

Permalink
increase backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
mruwnik committed Oct 16, 2023
1 parent 00d75f9 commit 554b64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion align_data/embeddings/embedding_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def handle_openai_errors(func):

@wraps(func)
@retry(
wait=wait_random_exponential(multiplier=1, min=2, max=30),
wait=wait_random_exponential(multiplier=1, min=2, max=300),
stop=stop_after_attempt(6),
retry=retry_if_exception_type(RateLimitError)
| retry_if_exception_type(APIError)
Expand Down

0 comments on commit 554b64e

Please sign in to comment.