From 374cd2bb2f8d2e798564d3c63e7f06021f2c4e39 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 9 Aug 2025 17:11:40 -0600 Subject: [PATCH] Add log --- frigate/genai/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frigate/genai/__init__.py b/frigate/genai/__init__.py index af5444861..5e7bc6029 100644 --- a/frigate/genai/__init__.py +++ b/frigate/genai/__init__.py @@ -79,8 +79,9 @@ class GenAIClient: try: return ReviewMetadata.model_validate_json(clean_json) - except Exception: + except Exception as e: # rarely LLMs can fail to follow directions on output format + logger.warning(f"Failed to parse review description as the response did not match expected format. {e}") return None else: return None