test(test_completion.py): handle palm exception
This commit is contained in:
parent
2a0d2dbdf9
commit
7ef7fadc2b
@ -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…
Reference in New Issue
Block a user