mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-28 01:27:41 +03:00
Add log
This commit is contained in:
parent
8c511083ff
commit
374cd2bb2f
@ -79,8 +79,9 @@ class GenAIClient:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return ReviewMetadata.model_validate_json(clean_json)
|
return ReviewMetadata.model_validate_json(clean_json)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
# rarely LLMs can fail to follow directions on output format
|
# 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
|
return None
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user