mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
test(test_proxy_exception_mapping): loosen assert
This commit is contained in:
parent
722ccba323
commit
d3105d8576
4 changed files with 1 additions and 4 deletions
|
@ -75,7 +75,7 @@ def test_chat_completion_exception(client):
|
|||
print("ERROR=", json_response["error"])
|
||||
assert isinstance(json_response["error"]["message"], str)
|
||||
assert (
|
||||
"litellm.AuthenticationError: AuthenticationError: OpenAIException - Incorrect API key provided: bad-key. You can find your API key at https://platform.openai.com/account/api-keys."
|
||||
"litellm.AuthenticationError: AuthenticationError"
|
||||
in json_response["error"]["message"]
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue