test(test_completion.py): handle palm exception

This commit is contained in:
Krrish Dholakia
2024-02-21 20:49:46 -08:00
parent 2a0d2dbdf9
commit 7ef7fadc2b
+2
View File
@@ -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}")