From 057d44d6a963597c3a0b4193f357d86cdf461fba Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 31 Oct 2025 12:24:45 -0600 Subject: [PATCH] Simplify genai config --- frigate/util/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/util/config.py b/frigate/util/config.py index 56f5662fc..5a14b1fa6 100644 --- a/frigate/util/config.py +++ b/frigate/util/config.py @@ -384,10 +384,10 @@ def migrate_017_0(config: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any] new_object_config["genai"] = {} for key in global_genai.keys(): - if key not in ["enabled", "model", "provider", "base_url", "api_key"]: - new_object_config["genai"][key] = global_genai[key] - else: + if key in ["model", "provider", "base_url", "api_key"]: new_genai_config[key] = global_genai[key] + else: + new_object_config["genai"][key] = global_genai[key] config["genai"] = new_genai_config