fix(ai): request final responses from Qwen3.5
CI and Deploy / test (push) Failing after 2h27m25s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-10-20 15:33:07 +02:00
parent 3e1057d951
commit f7dc22e5e7
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)