From fd17b9d03e5484041ddfbe84f240bb0f87771804 Mon Sep 17 00:00:00 2001 From: Repinoid Date: Mon, 8 Jun 2026 09:04:43 +0400 Subject: [PATCH] =?UTF-8?q?bump=20v0.82.0-dev,=20fix=20ping-llm=20auth,=20?= =?UTF-8?q?=D1=88=D1=80=D0=B8=D1=84=D1=82=2011sp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/ping.py | 5 +---- web/templates/index.html | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/api/ping.py b/api/ping.py index 35d4dbb..0c87681 100644 --- a/api/ping.py +++ b/api/ping.py @@ -28,14 +28,11 @@ def register(app): @app.route("/api/v1/ping-llm", methods=["GET"]) def ping_llm(): - """Проверка LLM с адаптивным кэшем. # API key check + """Проверка LLM с адаптивным кэшем (успех=60с, ошибка=7с).""" cfg = load() required = cfg.get("api", {}).get("key", "") if required and request.headers.get("X-Api-Key", "") != required: return jsonify({"ok": False, "error": "unauthorized"}), 401 - - Успех → кэш 60с - - Ошибка → кэш 7с (LLM мог уже ожить) - """ global _ping_llm_cache now = time.time() if _ping_llm_cache: diff --git a/web/templates/index.html b/web/templates/index.html index 1322763..9d84782 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -13,14 +13,14 @@ elmAI

elmAI

Диагностика авто через ELM327 + ИИ

-

v0.81.0-dev — 7 июня 2026

+

v0.82.0-dev — 7 июня 2026

📱 Скачай приложение на телефон:

⬇️ Скачать elmAI APK -

v0.81.0-dev • нажмите чтобы скачать

+

v0.82.0-dev • нажмите чтобы скачать