Add missing use_snapshot config field for GenAIConfig

This commit is contained in:
Weitheng Haw 2024-10-30 11:22:38 +00:00
parent 20ae6099f2
commit cef5a1ebab

View File

@ -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.",