fix: suppress qwen3.8fast CoT leak via enable_thinking:false (template ignores think:false)

This commit is contained in:
drjones
2026-08-24 21:03:03 -07:00
parent 4c0850e053
commit f2bc2d90d3

4
app.py
View File

@@ -3,7 +3,7 @@
ARGUS v2 — Autonomous Security Agent
=====================================
Rentable AI security agent. Real tool calls, real results, in the browser.
Bitcoin (sats) settled. No KYC. qwen3.8-fast interprets every result.
Bitcoin (sats) settled. No KYC. qwen3.8fast interprets every result.
Tooling:
- Web vuln -> SUPERkali (.177): nuclei / ffuf / nmap / subfinder / httpx
@@ -99,7 +99,7 @@ def agent_report(kind, target, raw):
)
body = json.dumps({"model": OLLAMA_MODEL, "prompt": prompt, "stream": False,
"think": False,
"options": {"num_predict": 1500}}).encode()
"options": {"num_predict": 1500, "enable_thinking": False, "reasoning_effort": "low"}}).encode()
req = urllib.request.Request(f"{OLLAMA_URL}/api/generate", data=body,
headers={"Content-Type": "application/json"})
try: