mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 06:35:24 +03:00
better error handling when genai fails
This commit is contained in:
parent
c5a83575f0
commit
a0197dce52
@ -157,6 +157,10 @@ class EmbeddingMaintainer(threading.Thread):
|
||||
|
||||
description = self.genai_client.generate_description(thumbnails, metadata)
|
||||
|
||||
if description is None:
|
||||
logger.debug("Failed to generate description for %s", event.id)
|
||||
return
|
||||
|
||||
# Update the event to add the description
|
||||
event.data["description"] = description
|
||||
event.save()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user