forked from phoenix/litellm-mirror
try passing tests
This commit is contained in:
parent
5b5bd59783
commit
d2e29ea0ca
2 changed files with 4 additions and 4 deletions
|
@ -283,8 +283,8 @@ def completion(
|
|||
],
|
||||
}
|
||||
response = new_response
|
||||
else:
|
||||
logging(model=model, input=messages, azure=azure, logger_fn=logger_fn)
|
||||
else:
|
||||
raise Exception(f"Model '{model}' not found. Please check your model name and try again.")
|
||||
return response
|
||||
except Exception as e:
|
||||
logging(model=model, input=messages, azure=azure, additional_args={"max_tokens": max_tokens}, logger_fn=logger_fn)
|
||||
|
|
|
@ -23,6 +23,6 @@ model_val = "krrish is a model"
|
|||
# test on empty
|
||||
try:
|
||||
response = completion(model=model_val, messages=messages)
|
||||
except:
|
||||
print(f"error occurred: {traceback.format_exc()}")
|
||||
except Exception as e:
|
||||
print(f"error occurred: {e}")
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue