From b6d07202f1ec6c043bb26be931e70f97316bd0ab Mon Sep 17 00:00:00 2001 From: Aleric Cusher Date: Wed, 8 Nov 2023 15:16:38 +0530 Subject: [PATCH] Increases wait time for retry of chat_completion in llms/openai module --- superagi/llms/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superagi/llms/openai.py b/superagi/llms/openai.py index c7cef15fd..62ace6305 100644 --- a/superagi/llms/openai.py +++ b/superagi/llms/openai.py @@ -9,7 +9,7 @@ MAX_RETRY_ATTEMPTS = 5 MIN_WAIT = 30 # Seconds -MAX_WAIT = 120 # Seconds +MAX_WAIT = 300 # Seconds def custom_retry_error_callback(retry_state): logger.info("OpenAi Exception:", retry_state.outcome.exception())