From cef5a1ebab30014d1e1f8b2d44daec96cbd39a67 Mon Sep 17 00:00:00 2001 From: Weitheng Haw Date: Wed, 30 Oct 2024 11:22:38 +0000 Subject: [PATCH] Add missing use_snapshot config field for GenAIConfig --- frigate/config/camera/genai.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frigate/config/camera/genai.py b/frigate/config/camera/genai.py index 35c26eaf8..fe1325431 100644 --- a/frigate/config/camera/genai.py +++ b/frigate/config/camera/genai.py @@ -50,6 +50,9 @@ class GenAICameraConfig(BaseModel): class GenAIConfig(FrigateBaseModel): enabled: bool = Field(default=False, title="Enable GenAI.") + use_snapshot: bool = Field( + default=False, title="Use snapshots for generating descriptions." + ) prompt: str = Field( default="Analyze the sequence of images containing the {label}. Focus on the likely intent or behavior of the {label} based on its actions and movement, rather than describing its appearance or the surroundings. Consider what the {label} is doing, why, and what it might do next.", title="Default caption prompt.",