mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix /moderations endpoint
This commit is contained in:
parent
c50a60004f
commit
7a17b2132f
1 changed files with 3 additions and 2 deletions
|
@ -65,9 +65,10 @@ async def route_request(
|
|||
return getattr(user_router, f"{route_type}")(**data)
|
||||
|
||||
elif (
|
||||
"," in data.get("model", "")
|
||||
route_type == "acompletion"
|
||||
and data.get("model", "") is not None
|
||||
and "," in data.get("model", "")
|
||||
and llm_router is not None
|
||||
and route_type == "acompletion"
|
||||
):
|
||||
if data.get("fastest_response", False):
|
||||
return llm_router.abatch_completion_fastest_response(**data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue