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(
|
||||
self,
|
||||
data: dict,
|
||||
call_type: (
|
||||
Literal["completion"] | Literal["embeddings"] | Literal["image_generation"]
|
||||
),
|
||||
call_type: Literal["completion", "embeddings", "image_generation"],
|
||||
):
|
||||
"""
|
||||
- Calls Google's Text Moderation API
|
||||
|
|
|
@ -99,9 +99,7 @@ class _ENTERPRISE_LlamaGuard(CustomLogger):
|
|||
async def async_moderation_hook(
|
||||
self,
|
||||
data: dict,
|
||||
call_type: (
|
||||
Literal["completion"] | Literal["embeddings"] | Literal["image_generation"]
|
||||
),
|
||||
call_type: Literal["completion", "embeddings", "image_generation"],
|
||||
):
|
||||
"""
|
||||
- Calls the Llama Guard Endpoint
|
||||
|
|
|
@ -95,9 +95,7 @@ class _ENTERPRISE_LLMGuard(CustomLogger):
|
|||
async def async_moderation_hook(
|
||||
self,
|
||||
data: dict,
|
||||
call_type: (
|
||||
Literal["completion"] | Literal["embeddings"] | Literal["image_generation"]
|
||||
),
|
||||
call_type: Literal["completion", "embeddings", "image_generation"],
|
||||
):
|
||||
"""
|
||||
- Calls the LLM Guard Endpoint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue