forked from phoenix/litellm-mirror
Update litellm/tests/test_client.py
This commit is contained in:
parent
8cbc144ea8
commit
52b0cc0756
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ messages = [{ "content": user_message,"role": "user"}]
|
||||||
|
|
||||||
def test_completion_openai():
|
def test_completion_openai():
|
||||||
try:
|
try:
|
||||||
response = completion(model="gpt-3.5-turbo", messages=messages, logger_fn=logger_fn)
|
response = completion(model="updated-model", messages=messages, logger_fn=logger_fn)
|
||||||
# Add any assertions here to check the response
|
# Add any assertions here to check the response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pytest.fail(f"Error occurred: {e}")
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
@ -37,7 +37,7 @@ def test_completion_non_openai():
|
||||||
|
|
||||||
def test_embedding_openai():
|
def test_embedding_openai():
|
||||||
try:
|
try:
|
||||||
response = embedding(model='text-embedding-ada-002', input=[user_message], logger_fn=logger_fn)
|
response = embedding(model='updated-model', input=[user_message], logger_fn=logger_fn)
|
||||||
# Add any assertions here to check the response
|
# Add any assertions here to check the response
|
||||||
print(f"response: {str(response)[:50]}")
|
print(f"response: {str(response)[:50]}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue