fix: fix linting issue

This commit is contained in:
Krrish Dholakia 2024-03-21 08:05:47 -07:00
parent d91f9a9f50
commit 2ce5de903f
3 changed files with 3 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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