max_time not max_tries

This commit is contained in:
Paul Gauthier 2024-05-04 17:48:01 -07:00
parent 1b35ca25c4
commit 3e4fca2675

View file

@ -36,7 +36,7 @@ def should_giveup(e):
litellm.exceptions.ServiceUnavailableError,
),
giveup=should_giveup,
max_tries=3,
max_time=60,
on_backoff=lambda details: print(
f"{details.get('exception','Exception')}\nRetry in {details['wait']:.1f} seconds."
),