From ac33f8a02b9912f7bd04545173349560ae02b0c9 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 16 Aug 2025 21:16:44 -0700 Subject: [PATCH] Update llm.py --- modules/llm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/llm.py b/modules/llm.py index fc38a9f..96bd122 100644 --- a/modules/llm.py +++ b/modules/llm.py @@ -79,6 +79,7 @@ def llm_query(input, nodeID=0, location_name=None): # if this is the first initialization of the LLM the query of " " should bring meshbotAIinit OTA shouldnt reach this? # This is for LLM like gemma and others now? if input == " " and rawQuery: + logger.warning("System: These LLM models lack a traditional system prompt, they can be verbose and not very helpful be advised.") input = meshbotAIinit if not location_name: @@ -132,6 +133,8 @@ def llm_query(input, nodeID=0, location_name=None): try: if rawQuery: # sanitize the input to remove tool call syntax + if '```' in input: + logger.warning("System: LLM Query: Code markdown detected, removing for raw query") input = input.replace('```', '').replace('```bash', '').replace('```python', '') modelPrompt = input else: