Update llm.py

This commit is contained in:
SpudGunMan
2024-09-03 21:10:11 -07:00
parent 92d04f81c3
commit aa5f2f66f8
+1 -1
View File
@@ -15,7 +15,6 @@ llmContext_fromGoogle = True
llm_history_limit = 6 # limit the history to 3 messages (come in pairs)
antiFloodLLM = []
llmChat_history = []
googleResults = []
trap_list_llm = ("ask:", "askai")
meshBotAI = """
@@ -61,6 +60,7 @@ chain_prompt_model = model_prompt | ollama_model
def llm_query(input, nodeID=0):
global antiFloodLLM, llmChat_history
googleResults = []
# add the naughty list here to stop the function before we continue
# add a list of allowed nodes only to use the function