fix: Initialize GenAI client if GenAI is enabled globally (#18623)

This commit is contained in:
FL42 2025-06-08 14:55:29 +02:00 committed by GitHub
parent 76201c0c7f
commit eb83f2ac47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,7 @@ def get_genai_client(config: FrigateConfig) -> Optional[GenAIClient]:
c for c in config.cameras.values() if c.enabled and c.genai.enabled
]
if genai_cameras:
if genai_cameras or genai_config.enabled:
load_providers()
provider = PROVIDERS.get(genai_config.provider)
if provider: