mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
test(test_exceptions.py): loosen test
This commit is contained in:
parent
06529f19df
commit
834e204c73
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ def test_completion_perplexity_exception_on_openai_client():
|
|||
os.environ["OPENAI_API_KEY"] = original_openai_key
|
||||
print("exception: ", e)
|
||||
assert (
|
||||
"perplexity.perplexityError: The api_key client option must be set either by passing api_key to the client or by setting the PERPLEXITY_API_KEY environment variable"
|
||||
"The api_key client option must be set either by passing api_key to the client or by setting the PERPLEXITY_API_KEY environment variable"
|
||||
in str(e)
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue