fix problem from claude
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
from pydantic import BaseModel
|
||||
from pydantic import Field
|
||||
|
||||
from app.config.settings import settings
|
||||
|
||||
|
||||
class TextRequest(BaseModel):
|
||||
text: str = Field(
|
||||
min_length=1,
|
||||
max_length=5000
|
||||
max_length=settings.TEXT_MAX_LENGTH
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user