mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
test(test_completion.py): handle palm exception
This commit is contained in:
parent
2a0d2dbdf9
commit
7ef7fadc2b
1 changed files with 2 additions and 0 deletions
|
|
@ -2037,6 +2037,8 @@ def test_completion_palm_stream():
|
|||
# Add any assertions here to check the response
|
||||
for chunk in response:
|
||||
print(chunk)
|
||||
except litellm.APIError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue