forked from phoenix/litellm-mirror
good one
This commit is contained in:
parent
5dca483e09
commit
61c569e551
1 changed files with 9 additions and 1 deletions
|
@ -17,6 +17,14 @@ litellm.secret_manager_client = InfisicalClient(token=infisical_token)
|
|||
user_message = "Hello, whats the weather in San Francisco??"
|
||||
messages = [{ "content": user_message,"role": "user"}]
|
||||
|
||||
def test_completion_azure():
|
||||
try:
|
||||
response = completion(model="chatgpt-test", messages=messages, azure=True)
|
||||
# Add any assertions here to check the response
|
||||
print(response)
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
def test_completion_openai():
|
||||
try:
|
||||
response = completion(model="gpt-3.5-turbo", messages=messages)
|
||||
|
@ -31,4 +39,4 @@ def test_completion_openai_with_optional_params():
|
|||
# Add any assertions here to check the response
|
||||
print(response)
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
pytest.fail(f"Error occurred: {e}")
|
Loading…
Add table
Add a link
Reference in a new issue