Automatically retry on Anthropic overloaded_error

This commit is contained in:
Paul Gauthier 2024-07-01 14:12:00 -03:00
parent d229b27bb0
commit 2cd680cba7
2 changed files with 2 additions and 0 deletions

View file

@ -40,6 +40,7 @@ def should_giveup(e):
litellm.exceptions.RateLimitError,
litellm.exceptions.ServiceUnavailableError,
litellm.exceptions.Timeout,
litellm.llms.anthropic.AnthropicError,
),
giveup=should_giveup,
max_time=60,