From 2d5c704edf78b4fc874b650a6fcff9740f4d3f3d Mon Sep 17 00:00:00 2001 From: Repinoid Date: Fri, 29 May 2026 10:17:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20mock,=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20llm=5Favailable,=20?= =?UTF-8?q?=D1=82=D0=B0=D0=B9=D0=BC=D0=B5=D1=80=20+=20=D1=81=D1=87=D1=91?= =?UTF-8?q?=D1=82=D1=87=D0=B8=D0=BA=20=D0=BF=D1=80=D0=B8=20upload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/script_endpoint.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/script_endpoint.py b/web/script_endpoint.py index 7ea0933..55f95ed 100644 --- a/web/script_endpoint.py +++ b/web/script_endpoint.py @@ -87,6 +87,7 @@ def register(app): cfg = load() api_key = cfg["llm"]["api_key"] model = cfg["llm"].get("model", "gpt-oss-120b") + llm_available = bool(api_key) llm_start = time.time() llm_success = False @@ -126,6 +127,8 @@ def register(app): return jsonify({ "diagnosis": diagnosis, "parsed": _summary(parsed), + "llm_available": llm_available, + "llm_success": llm_success, })