v1.8.1: fix consent flow — split-based word matching, refuse words before quick_intent, operator handler, plain text phones, clarify_intent post-processing

This commit is contained in:
2026-06-01 19:54:11 +03:00
parent cc87bcf72c
commit a64a274829
5 changed files with 142 additions and 25 deletions
+20
View File
@@ -0,0 +1,20 @@
import re
words = ["да", "даю", "согласен", "согласна", "yes", "ok", "хорошо", "даю согласие"]
texts = [
"не хочу давать согласие",
"я даю согласие",
"да",
"нет",
"передумал, даю согласие",
"согласен",
"хорошо",
]
for text in texts:
matches = []
for w in words:
if re.search(r'\b' + re.escape(w) + r'\b', text):
matches.append(w)
print(f"'{text}' -> matched: {matches}")