Files
post-moderation/ai-moderation/app/models/response/moderation_response.py
SlimusMinus d33f0eaa78 fixed code
2026-08-05 01:44:29 +03:00

10 lines
409 B
Python

from pydantic import BaseModel, Field
class ModerationResponse(BaseModel):
approved: bool = Field(...,
description="Indicates if the text is approved or not")
score: float = Field(...,
description="The score indicating the level of toxicity or appropriateness of the text")
reason: str = Field(..., description="The reason for the moderation decision")