mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
catch gemini 429 errors
This commit is contained in:
parent
34a9b8648d
commit
3dbb547af0
1 changed files with 2 additions and 0 deletions
|
|
@ -521,6 +521,8 @@ def test_gemini_pro_function_calling():
|
|||
print(f"completion: {completion}")
|
||||
assert completion.choices[0].message.content is None
|
||||
assert len(completion.choices[0].message.tool_calls) == 1
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
if "429 Quota exceeded" in str(e):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue