mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Update litellm/tests/test_bad_params.py
This commit is contained in:
parent
e1b880179e
commit
be70e09c6e
1 changed files with 2 additions and 2 deletions
|
@ -26,13 +26,13 @@ litellm.failure_callback = ["slack", "sentry", "posthog"]
|
||||||
|
|
||||||
user_message = "Hello, how are you?"
|
user_message = "Hello, how are you?"
|
||||||
messages = [{ "content": user_message,"role": "user"}]
|
messages = [{ "content": user_message,"role": "user"}]
|
||||||
model_val = "krrish is a model"
|
model_val = ""
|
||||||
|
|
||||||
|
|
||||||
def test_completion_with_empty_model():
|
def test_completion_with_empty_model():
|
||||||
# test on empty
|
# test on empty
|
||||||
try:
|
try:
|
||||||
response = completion(model=model_val, messages=messages)
|
response = completion(model="", messages=messages)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"error occurred: {e}")
|
print(f"error occurred: {e}")
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue