mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
test: handle anthropic rate limit error
This commit is contained in:
parent
48419ca8bc
commit
cd073d5ad3
1 changed files with 2 additions and 0 deletions
|
|
@ -304,6 +304,8 @@ def test_completion_claude():
|
|||
print(response.usage.completion_tokens)
|
||||
print(response["usage"]["completion_tokens"])
|
||||
# print("new cost tracking")
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
if "overloaded_error" in str(e):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue