Skip to content

Commit

Permalink
Increases wait time for retry of chat_completion in llms/openai module
Browse files Browse the repository at this point in the history
  • Loading branch information
aleric-cusher committed Nov 8, 2023
1 parent f4e2da6 commit 9e8c7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/llms/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 9e8c7c2

Please sign in to comment.