Skip to content

Commit a35722c

Browse files
committed
refactor: ♻️ Removing outdated Optional[] to new version convetions
1 parent 474879d commit a35722c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

api/schemas/forms.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
from typing import Optional
2-
31
from pydantic import BaseModel, field_validator
42

53
class FormFill(BaseModel):
64
template_id: int
75
input_text: str
86
# Optional Ollama model override for this fill; falls back to OLLAMA_MODEL.
97
# Not persisted (no DB column) — excluded before building FormSubmission.
10-
model: Optional[str] = None
8+
model: str | None = None
119

1210
@field_validator("input_text")
1311
def validate_input_text(cls, value):

0 commit comments

Comments
 (0)