mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
test(test_completion.py): fix test
This commit is contained in:
parent
de8eae20d9
commit
a6ee1e04fe
1 changed files with 3 additions and 1 deletions
|
@ -4032,7 +4032,9 @@ def test_completion_gemini(model):
|
|||
# Add any assertions,here to check the response
|
||||
print(response)
|
||||
assert response.choices[0]["index"] == 0
|
||||
except litellm.APIError as e:
|
||||
except litellm.RateLimitError:
|
||||
pass
|
||||
except litellm.APIError:
|
||||
pass
|
||||
except Exception as e:
|
||||
if "InternalServerError" in str(e):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue