Improve command understanding with bigger wording banks; tested

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 05:43:03 +09:00
co-authored by Claude Opus 5.5
parent f1f63d0794
commit 38546b0ca3
36 changed files with 3820 additions and 271 deletions
+2 -2
View File
@@ -114,8 +114,8 @@ def llm_route(action, target, words, text, about, lang, repeating=False):
return action, "" # lumi.answer() closes the stream and looks it up
if action == "unclear":
return action, " ".join(words)
if lumi.talk_fate(text) == "close" and (action == "none" or action == "end" and not lumi.kept_goodbye(" ".join(words))):
return "chat", " ".join(words) # "thanks" taken as heard: silence ends the talk
if lumi.talk_fate(text) == "close" and action in ("none", "end"): # "thanks": it ends when Lumi's words took leave,
return ("action:end" if lumi.kept_goodbye(" ".join(words)) else "chat"), " ".join(words) # else silence ends it
if action in ("none", "sing") and not repeating and lumi.look_up_unsure(about, words[0] if words else "", text):
return "search(unsure)", " ".join(words)
return ("none" if action == "none" else f"action:{action} {target}".strip()), " ".join(words)