Skip to content

NVR with realtime local object detection for IP cameras

Improve error message when semantic search is not enabled with genai (#14528)

Josh Hawkins7afc1e9762d2
diff --git a/frigate/api/event.py b/frigate/api/event.py
index 89b2fedefb..7f4f14610b 100644
--- a/frigate/api/event.py
+++ b/frigate/api/event.py
@@ -1015,7 +1015,7 @@ def regenerate_description(
content=(
{
"success": False,
- "message": "Semantic search and generative AI are not enabled",
+ "message": "Semantic Search and Generative AI must be enabled to regenerate a description",
}
),
status_code=400,
diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx
index 5df921d4fa..f443c9d443 100644
--- a/web/src/components/overlay/detail/SearchDetailDialog.tsx
+++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx
@@ -368,9 +368,9 @@ function ObjectDetailsTab({
);
}
})
- .catch(() => {
+ .catch((error) => {
toast.error(
- `Failed to call ${capitalizeAll(config?.genai.provider.replaceAll("_", " ") ?? "Generative AI")} for a new description`,
+ `Failed to call ${capitalizeAll(config?.genai.provider.replaceAll("_", " ") ?? "Generative AI")} for a new description: ${error.response.data.message}`,
{
position: "top-center",
},