mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-05 01:11:12 +02:00
Update llm.py
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ def llm_query(input, nodeID=0, location_name=None):
|
||||
# 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', '')
|
||||
input = input.replace('```bash', '').replace('```python', '').replace('```', '')
|
||||
modelPrompt = input
|
||||
else:
|
||||
# Build the query from the template
|
||||
|
||||
Reference in New Issue
Block a user