Use fast non-thinking DeepSeek for stove matching

This commit is contained in:
anor
2026-11-26 22:14:19 +10:00
parent dd93361276
commit 95a8b36ecb
3 changed files with 44 additions and 2 deletions
+2
View File
@@ -216,6 +216,8 @@ def _to_provider(body: dict, model: str, cap: int) -> dict:
payload = {"model": model,
"max_tokens": min(int(body.get("max_tokens") or cap), cap),
"stream": True, "messages": messages}
if body.get("thinking") == {"type": "disabled"}:
payload["thinking"] = {"type": "disabled"}
if system_parts:
payload["system"] = "\n\n".join(system_parts)
tools = []