added image ai-moderation
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel
|
||||
from pydantic import Field
|
||||
|
||||
|
||||
class TextRequest(BaseModel):
|
||||
text: str = Field(..., description="The text to be moderated")
|
||||
|
||||
text: str = Field(
|
||||
min_length=1,
|
||||
max_length=5000
|
||||
)
|
||||
Reference in New Issue
Block a user