mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-29 01:57:41 +03:00
Add config for review items genai
This commit is contained in:
parent
8f77aa288c
commit
5cba8ea1fa
@ -62,6 +62,18 @@ class DetectionsConfig(FrigateBaseModel):
|
|||||||
return v
|
return v
|
||||||
|
|
||||||
|
|
||||||
|
class GenAIReviewConfig(FrigateBaseModel):
|
||||||
|
alerts: bool = Field(default=False, title="Enable GenAI for alerts.")
|
||||||
|
detections: bool = Field(default=False, title="Enable GenAI for detections.")
|
||||||
|
debug_save_thumbnails: bool = Field(
|
||||||
|
default=False,
|
||||||
|
title="Save thumbnails sent to generative AI for debugging purposes.",
|
||||||
|
)
|
||||||
|
enabled_in_config: Optional[bool] = Field(
|
||||||
|
default=None, title="Keep track of original state of generative AI."
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ReviewConfig(FrigateBaseModel):
|
class ReviewConfig(FrigateBaseModel):
|
||||||
"""Configure reviews"""
|
"""Configure reviews"""
|
||||||
|
|
||||||
@ -71,3 +83,6 @@ class ReviewConfig(FrigateBaseModel):
|
|||||||
detections: DetectionsConfig = Field(
|
detections: DetectionsConfig = Field(
|
||||||
default_factory=DetectionsConfig, title="Review detections config."
|
default_factory=DetectionsConfig, title="Review detections config."
|
||||||
)
|
)
|
||||||
|
genai: GenAIReviewConfig = Field(
|
||||||
|
default_factory=GenAIReviewConfig, title="Review description genai config."
|
||||||
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user