From 63c3e35064189f6b6cbf865ca72a4b424a6685b6 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 3 Sep 2024 23:12:32 -0700 Subject: [PATCH] Update llm.py --- modules/llm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/llm.py b/modules/llm.py index 80e75e6..4316504 100644 --- a/modules/llm.py +++ b/modules/llm.py @@ -70,6 +70,8 @@ chain_prompt_model = model_prompt | ollama_model def llm_query(input, nodeID=0, location_name=None): global antiFloodLLM, llmChat_history googleResults = [] + if not location_name: + location_name = "no location provided " # add the naughty list here to stop the function before we continue # add a list of allowed nodes only to use the function