This commit is contained in:
ishaan-jaff 2023-08-07 21:34:05 -07:00
parent 9a4028ace5
commit 2bb81e1c79
2 changed files with 8 additions and 8 deletions

View file

@ -61,11 +61,11 @@ def test_bad_azure_embedding():
print(f"response: {str(response)[:50]}")
except Exception as e:
pass
def test_good_azure_embedding():
try:
response = embedding(model='azure-embedding-model', input=[user_message], azure=True, logger_fn=logger_fn)
# Add any assertions here to check the response
print(f"response: {str(response)[:50]}")
except Exception as e:
pytest.fail(f"Error occurred: {e}")
# def test_good_azure_embedding():
# try:
# response = embedding(model='azure-embedding-model', input=[user_message], azure=True, logger_fn=logger_fn)
# # Add any assertions here to check the response
# print(f"response: {str(response)[:50]}")
# except Exception as e:
# pytest.fail(f"Error occurred: {e}")