From 8a4f7a904a6f37dd86ba7cf326a81918f6cf41e5 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 26 Jun 2025 18:49:16 -0700 Subject: [PATCH] Update llm.py --- modules/llm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/llm.py b/modules/llm.py index 183c2f6..5be12f8 100644 --- a/modules/llm.py +++ b/modules/llm.py @@ -146,6 +146,10 @@ def llm_query(input, nodeID=0, location_name=None): googleResults = [] if not location_name: location_name = "no location provided " + + # remove askai: and ask: from the input + if input.startswith(trap_list_llm): + input = input.split(":", 1)[1].strip() # add the naughty list here to stop the function before we continue # add a list of allowed nodes only to use the function