Use fast non-thinking DeepSeek for stove matching
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user