forked from phoenix/litellm-mirror
fix _pass_through_moderation_endpoint_factory
This commit is contained in:
parent
a8b8deb793
commit
d717fd8fcb
1 changed files with 1 additions and 4 deletions
|
@ -2563,10 +2563,7 @@ class Router:
|
|||
original_function: Callable,
|
||||
**kwargs,
|
||||
):
|
||||
if (
|
||||
"model" in kwargs
|
||||
and self.get_model_list(model_name=kwargs["model"]) is not None
|
||||
):
|
||||
if kwargs.get("model") and self.get_model_list(model_name=kwargs["model"]):
|
||||
deployment = await self.async_get_available_deployment(
|
||||
model=kwargs["model"]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue