10 lines
165 B
Python
10 lines
165 B
Python
from pydantic import BaseModel
|
|
from pydantic import Field
|
|
|
|
|
|
class TextRequest(BaseModel):
|
|
|
|
text: str = Field(
|
|
min_length=1,
|
|
max_length=5000
|
|
) |