aboutsummaryrefslogtreecommitdiffstats
path: root/deckit
diff options
context:
space:
mode:
Diffstat (limited to 'deckit')
-rw-r--r--deckit/modules/assistant.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/deckit/modules/assistant.py b/deckit/modules/assistant.py
index 247caf4..f0b3947 100644
--- a/deckit/modules/assistant.py
+++ b/deckit/modules/assistant.py
@@ -203,12 +203,6 @@ def make(cfg: dict) -> Module:
out["hears"] = hears(st["models"], out["wanted"])
return out
- def ask(body):
- text = body.get("text")
- if not isinstance(text, str) or not text.strip():
- raise ModuleError("text required")
- send(with_model({"type": "ask", "text": text}))
-
def model(body):
mid = body.get("id")
with lock:
@@ -343,7 +337,7 @@ def make(cfg: dict) -> Module:
return Module(
name="assistant", title="Assistant", state=state,
- actions={"ask": ask, "stop": lambda b: send({"type": "stop"}),
+ actions={"stop": lambda b: send({"type": "stop"}),
"new": lambda b: send({"type": "new"}),
"models": lambda b: send({"type": "models"}),
"model": model, "voice": voice, "pick": pick, "cancel": cancel},