mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test(test_amazing_vertex_completion.py): handle vertex ai rate limit errors
This commit is contained in:
parent
f7537f2cdf
commit
9d7aaa91e0
1 changed files with 2 additions and 1 deletions
|
|
@ -428,7 +428,8 @@ def test_gemini_pro_vision():
|
|||
# DO Not DELETE this ASSERT
|
||||
# Google counts the prompt tokens for us, we should ensure we use the tokens from the orignal response
|
||||
assert prompt_tokens == 263 # the gemini api returns 263 to us
|
||||
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
if "500 Internal error encountered.'" in str(e):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue