mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix gemini test
This commit is contained in:
parent
1790869739
commit
122dff007b
1 changed files with 6 additions and 1 deletions
|
|
@ -487,8 +487,13 @@ async def test_acompletion_gemini_stream():
|
|||
raise Exception("Empty response received")
|
||||
except litellm.APIError as e:
|
||||
pass
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
if "429 Resource has been exhausted" in str(e):
|
||||
pass
|
||||
else:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
|
||||
# asyncio.run(test_acompletion_gemini_stream())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue