forked from phoenix/litellm-mirror
(ci/cd) raise correct exception proxy
This commit is contained in:
parent
bcf22725a6
commit
83b31141c6
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ def test_exception_openai_bad_model(client):
|
|||
response=response
|
||||
)
|
||||
print("Type of exception=", type(openai_exception))
|
||||
assert isinstance(openai_exception, openai.BadRequestError)
|
||||
assert isinstance(openai_exception, openai.NotFoundError)
|
||||
|
||||
except Exception as e:
|
||||
pytest.fail(f"LiteLLM Proxy test failed. Exception {str(e)}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue