From 554b64e715a60afaf721f88c2edb248f86e2afd6 Mon Sep 17 00:00:00 2001 From: Daniel O'Connell Date: Mon, 16 Oct 2023 21:22:39 +0200 Subject: [PATCH] increase backoff --- align_data/embeddings/embedding_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/align_data/embeddings/embedding_utils.py b/align_data/embeddings/embedding_utils.py index f6c41f7..da37313 100644 --- a/align_data/embeddings/embedding_utils.py +++ b/align_data/embeddings/embedding_utils.py @@ -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)