GenAI: add ability to save JPGs sent to provider (#15643)

* GenAI: add ability to save JPGs sent to provider

* Remove mention from GenAI docs

* Change config name to debug_save_thumbnails

* Change  folder structure to clips/genai-requests/{event_id}/{1.jpg}
This commit is contained in:
leccelecce
2024-12-23 14:05:34 +00:00
committed by GitHub
parent 87e7b62c85
commit 00371546a3
3 changed files with 36 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ class GenAICameraConfig(BaseModel):
default_factory=list,
title="List of required zones to be entered in order to run generative AI.",
)
debug_save_thumbnails: bool = Field(
default=False,
title="Save thumbnails sent to generative AI for debugging purposes.",
)
@field_validator("required_zones", mode="before")
@classmethod