forked from phoenix/litellm-mirror
feat - add open ai moderations check
This commit is contained in:
parent
84f3690453
commit
1fe035c6dd
3 changed files with 79 additions and 0 deletions
|
@ -2313,6 +2313,18 @@ class ProxyConfig:
|
|||
|
||||
llama_guard_object = _ENTERPRISE_LlamaGuard()
|
||||
imported_list.append(llama_guard_object)
|
||||
elif (
|
||||
isinstance(callback, str)
|
||||
and callback == "openai_moderations"
|
||||
):
|
||||
from enterprise.enterprise_hooks.openai_moderation import (
|
||||
_ENTERPRISE_OpenAI_Moderation,
|
||||
)
|
||||
|
||||
openai_moderations_object = (
|
||||
_ENTERPRISE_OpenAI_Moderation()
|
||||
)
|
||||
imported_list.append(openai_moderations_object)
|
||||
elif (
|
||||
isinstance(callback, str)
|
||||
and callback == "google_text_moderation"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue