added image ai-moderation

This commit is contained in:
SlimusMinus
2026-07-28 01:10:11 +03:00
parent 1132a774af
commit d376a7417a
34 changed files with 8302 additions and 34 deletions

View File

@@ -0,0 +1,6 @@
from pydantic import BaseModel
class ErrorResponse(BaseModel):
code: str
message: str

View File

@@ -0,0 +1,16 @@
from typing import List
from pydantic import BaseModel
class ImageModerationResponse(BaseModel):
approved: bool
score: float
reason: str
label: str
detected_labels: List[str]