From d0326ee9ced47a7f81a455c86ba5979f3de3d8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Wed, 24 Jun 2026 09:09:26 +0400 Subject: [PATCH] v1.0.166: fix missing _smart_extract function --- deploy/services/classify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/services/classify.py b/deploy/services/classify.py index 531f32a..b9d4a70 100644 --- a/deploy/services/classify.py +++ b/deploy/services/classify.py @@ -125,6 +125,9 @@ def _safe_json_parse(raw): text = _re.sub(r',\s*]', ']', text) return json.loads(text) + + +def _smart_extract(elements_json): """ Умная выжимка текста для классификации (решение Q3 от Opus).