Skip to content

NVR with realtime local object detection for IP cameras

Set min length for GenAI scene to encourage details (#22996)

Nicolas Mowenea246384bf12
diff --git a/frigate/data_processing/post/types.py b/frigate/data_processing/post/types.py
index 6906f4a4ee..10390112da 100644
--- a/frigate/data_processing/post/types.py
+++ b/frigate/data_processing/post/types.py
@@ -8,7 +8,9 @@ class ReviewMetadata(BaseModel):
description="A short title characterizing what took place and where, under 10 words."
)
scene: str = Field(
- description="A chronological narrative of what happens from start to finish."
+ min_length=120,
+ max_length=600,
+ description="A chronological narrative of what happens from start to finish.",
)
shortSummary: str = Field(
description="A brief 2-sentence summary of the scene, suitable for notifications."