mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
test: fix linting testing
This commit is contained in:
parent
4198901a2d
commit
04f8840a92
3 changed files with 6 additions and 6 deletions
|
@ -130,12 +130,12 @@ def litellm_completion(data: Dict,
|
|||
if user_headers:
|
||||
data["headers"] = user_headers
|
||||
if type == "completion":
|
||||
if data["model"] in model_router.get_model_names():
|
||||
if model_router and data["model"] in model_router.get_model_names():
|
||||
model_router.text_completion(**data)
|
||||
else:
|
||||
response = litellm.text_completion(**data)
|
||||
elif type == "chat_completion":
|
||||
if data["model"] in model_router.get_model_names():
|
||||
if model_router and data["model"] in model_router.get_model_names():
|
||||
model_router.completion(**data)
|
||||
else:
|
||||
response = litellm.completion(**data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue