mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 09:02:15 +03:00
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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user