From 9ec193ea1306c34f98b792eceeca9c0f7be195a4 Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Mon, 20 Apr 2026 15:45:32 +0200 Subject: [PATCH] feat: expose LLM error reason in /api/ask response and UI - Add llm_error field to AskResponse so users know why AI summarisation was skipped - Show orange warning banner in frontend when LLM is not configured or call fails - Update AskEndpoint tests to assert llm_error presence --- backend/frontend/index.html | 4 ++++ backend/frontend/style.css | 10 ++++++++++ backend/models/api.py | 1 + backend/routes/ask.py | 8 +++++++- 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/backend/frontend/index.html b/backend/frontend/index.html index 321d1cc..0c0e79a 100644 --- a/backend/frontend/index.html +++ b/backend/frontend/index.html @@ -53,6 +53,7 @@