fix(ai): request final responses from Qwen3.5

This commit is contained in:
cesnimda
2026-10-20 15:33:07 +02:00
parent f9e1d06bf7
commit 1d34406d1b
3 changed files with 61 additions and 0 deletions
+2
View File
@@ -646,6 +646,8 @@ def _ollama_generate(prompt: str, *, json_mode: bool, temperature: float, timeou
"stream": False,
"options": {"temperature": temperature},
}
if OLLAMA_MODEL.split(":", 1)[0] == "qwen3.5":
payload["think"] = False
if json_mode:
payload["format"] = "json"
body = _http_post_json(f"{OLLAMA_BASE_URL}/api/generate", payload, {}, timeout)