(fix) test exception mapping

This commit is contained in:
ishaan-jaff 2024-02-02 12:32:10 -08:00
parent b17fe8d6f5
commit 4473c48e2b

View file

@ -455,7 +455,7 @@ def test_completion_perplexity_exception_on_openai_client():
# delete perplexityai api key to simulate bad api key
del os.environ["PERPLEXITYAI_API_KEY"]
# del os.environ["OPENAI_API_KEY"]
del os.environ["OPENAI_API_KEY"]
response = completion(
model="perplexity/mistral-7b-instruct",
messages=[{"role": "user", "content": "hello"}],