mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
v0 add rerank on litellm proxy
This commit is contained in:
parent
37ed201c50
commit
fb5be57bb8
12 changed files with 138 additions and 0 deletions
|
@ -127,6 +127,7 @@ class lakeraAI_Moderation(CustomGuardrail):
|
|||
"moderation",
|
||||
"audio_transcription",
|
||||
"pass_through_endpoint",
|
||||
"rerank",
|
||||
],
|
||||
):
|
||||
if (
|
||||
|
@ -288,6 +289,7 @@ class lakeraAI_Moderation(CustomGuardrail):
|
|||
"moderation",
|
||||
"audio_transcription",
|
||||
"pass_through_endpoint",
|
||||
"rerank",
|
||||
],
|
||||
) -> Optional[Union[Exception, str, Dict]]:
|
||||
from litellm.types.guardrails import GuardrailEventHooks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue