fix: Initialize GenAI client if GenAI is enabled globally

This commit is contained in:
FL42 2025-06-08 14:35:02 +02:00
parent 76201c0c7f
commit 6b2a0e67e0

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: