From b7ede4bd6daa5348e0193634cd763b27f40be989 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 26 Apr 2026 08:06:29 -0600 Subject: [PATCH] Adjust limits --- frigate/data_processing/post/types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frigate/data_processing/post/types.py b/frigate/data_processing/post/types.py index 0b2e6b108..99b2c4e94 100644 --- a/frigate/data_processing/post/types.py +++ b/frigate/data_processing/post/types.py @@ -30,8 +30,8 @@ class ReviewMetadata(BaseModel): description="A short title characterizing what took place and where, under 10 words.", ) scene: str = Field( - min_length=120, - max_length=600, + min_length=150, + max_length=400, description="A chronological narrative of what happens from start to finish, drawing directly from the items in observations.", ) shortSummary: str = Field( @@ -41,6 +41,7 @@ class ReviewMetadata(BaseModel): ) confidence: float = Field( ge=0.0, + le=1.0, description="Confidence in the analysis as a decimal between 0.0 and 1.0, where 0.0 means no confidence and 1.0 means complete confidence. Express ONLY as a decimal.", ) potential_threat_level: int = Field(