feat(nlp-service): cap /parse query at 500 chars via Field(max_length=500)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from __future__ import annotations
|
||||
from typing import Literal
|
||||
from pydantic import BaseModel
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class ParseRequest(BaseModel):
|
||||
query: str
|
||||
query: str = Field(max_length=500)
|
||||
lang: Literal["de", "en", "es"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user