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??"
|
user_message = "Hello, whats the weather in San Francisco??"
|
||||||
messages = [{ "content": user_message,"role": "user"}]
|
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():
|
def test_completion_openai():
|
||||||
try:
|
try:
|
||||||
response = completion(model="gpt-3.5-turbo", messages=messages)
|
response = completion(model="gpt-3.5-turbo", messages=messages)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue