diff --git a/frigate/api/event.py b/frigate/api/event.py index 89b2fedef..7f4f14610 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 5df921d4f..f443c9d44 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", },