From 0a260b28b62b5b2b936689b2afc7749c4402decd Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 26 Jun 2025 19:30:33 -0700 Subject: [PATCH] Update llm.py last time? --- modules/llm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/llm.py b/modules/llm.py index ea46072..b0c36fb 100644 --- a/modules/llm.py +++ b/modules/llm.py @@ -148,8 +148,10 @@ def llm_query(input, nodeID=0, location_name=None): location_name = "no location provided " # remove askai: and ask: from the input - if input.lower().startswith(trap_list_llm): - input = input.lower().replace("askai", "").replace("ask", "").strip() + for trap in trap_list_llm: + if input.lower().startswith(trap): + input = input[len(trap):].strip() + break # add the naughty list here to stop the function before we continue # add a list of allowed nodes only to use the function