Add missing use_snapshot config field for GenAIConfig

This commit is contained in:
Weitheng Haw 2024-10-30 11:31:17 +00:00
parent d12c7809dd
commit 530ac717e1

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