forked from phoenix/litellm-mirror
fix: fix linting issue
This commit is contained in:
parent
d91f9a9f50
commit
2ce5de903f
3 changed files with 3 additions and 9 deletions
|
@ -96,9 +96,7 @@ class _ENTERPRISE_GoogleTextModeration(CustomLogger):
|
||||||
async def async_moderation_hook(
|
async def async_moderation_hook(
|
||||||
self,
|
self,
|
||||||
data: dict,
|
data: dict,
|
||||||
call_type: (
|
call_type: Literal["completion", "embeddings", "image_generation"],
|
||||||
Literal["completion"] | Literal["embeddings"] | Literal["image_generation"]
|
|
||||||
),
|
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
- Calls Google's Text Moderation API
|
- Calls Google's Text Moderation API
|
||||||
|
|
|
@ -99,9 +99,7 @@ class _ENTERPRISE_LlamaGuard(CustomLogger):
|
||||||
async def async_moderation_hook(
|
async def async_moderation_hook(
|
||||||
self,
|
self,
|
||||||
data: dict,
|
data: dict,
|
||||||
call_type: (
|
call_type: Literal["completion", "embeddings", "image_generation"],
|
||||||
Literal["completion"] | Literal["embeddings"] | Literal["image_generation"]
|
|
||||||
),
|
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
- Calls the Llama Guard Endpoint
|
- Calls the Llama Guard Endpoint
|
||||||
|
|
|
@ -95,9 +95,7 @@ class _ENTERPRISE_LLMGuard(CustomLogger):
|
||||||
async def async_moderation_hook(
|
async def async_moderation_hook(
|
||||||
self,
|
self,
|
||||||
data: dict,
|
data: dict,
|
||||||
call_type: (
|
call_type: Literal["completion", "embeddings", "image_generation"],
|
||||||
Literal["completion"] | Literal["embeddings"] | Literal["image_generation"]
|
|
||||||
),
|
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
- Calls the LLM Guard Endpoint
|
- Calls the LLM Guard Endpoint
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue