From 4c0850e0531bebd57ad4979a12225c52820fdb56 Mon Sep 17 00:00:00 2001 From: drjones Date: Thu, 20 Aug 2026 18:35:27 -0700 Subject: [PATCH] Fix qm guest exec timeout, think:false for agent, OSINT direct-SSH path --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 963cf1f..10f65a5 100644 --- a/app.py +++ b/app.py @@ -68,7 +68,7 @@ def _ssh(cmd, timeout): def run_guest(vmid, cmd, timeout=420): """Run a command inside a VM via Proxmox guest exec; return decoded stdout.""" - out = _ssh(f"qm guest exec {vmid} -- bash -c {cmd!r}", timeout) + out = _ssh(f"qm guest exec {vmid} --timeout 300 -- bash -c {cmd!r}", timeout) try: return json.loads(out).get("out-data", "") except Exception: @@ -98,7 +98,8 @@ def agent_report(kind, target, raw): f"Format as markdown.\n\n=== RAW OUTPUT ===\n{raw[:8000]}" ) body = json.dumps({"model": OLLAMA_MODEL, "prompt": prompt, "stream": False, - "options": {"num_predict": 1024}}).encode() + "think": False, + "options": {"num_predict": 1500}}).encode() req = urllib.request.Request(f"{OLLAMA_URL}/api/generate", data=body, headers={"Content-Type": "application/json"}) try: