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 Blake Blackshear
parent 13b760346a
commit 937459be47

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: