Small genai fix (#14850)

* Ensure the regenerate button shows when genai is only enabled at the camera level

* update docs
This commit is contained in:
Josh Hawkins
2024-11-07 13:27:55 -07:00
committed by GitHub
parent 15bd26c9b1
commit 0d59754be2
5 changed files with 21 additions and 9 deletions
+3 -1
View File
@@ -996,9 +996,11 @@ def regenerate_description(
status_code=404,
)
camera_config = request.app.frigate_config.cameras[event.camera]
if (
request.app.frigate_config.semantic_search.enabled
and request.app.frigate_config.genai.enabled
and camera_config.genai.enabled
):
request.app.event_metadata_updater.publish((event.id, params.source))