mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
test(test_completion.py): handle replicate api error
This commit is contained in:
parent
b577f65798
commit
d2fe2b30a9
1 changed files with 2 additions and 0 deletions
|
|
@ -2580,6 +2580,8 @@ async def test_completion_replicate_llama3(sync_mode):
|
|||
# Add any assertions here to check the response
|
||||
assert isinstance(response, litellm.ModelResponse)
|
||||
response_format_tests(response=response)
|
||||
except litellm.APIError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue