test(test_async_fn.py): test logging

This commit is contained in:
Krrish Dholakia 2023-10-30 19:59:36 -07:00
parent 1cd43419b8
commit 9c70da56df

View file

@ -17,7 +17,7 @@ def test_sync_response():
user_message = "Hello, how are you?" user_message = "Hello, how are you?"
messages = [{"content": user_message, "role": "user"}] messages = [{"content": user_message, "role": "user"}]
try: try:
response = completion(model="gpt-3.5-turbo", messages=messages) response = completion(model="gpt-3.5-turbo", messages=messages, api_key=os.environ["OPENAI_API_KEY"])
except Exception as e: except Exception as e:
pytest.fail(f"An exception occurred: {e}") pytest.fail(f"An exception occurred: {e}")