fix(ollama): disable thinking for deepseek call sites
This commit is contained in:
@@ -720,7 +720,14 @@ async def _call_ollama(prompt: str, ollama_url: str, model: str) -> str | None:
|
||||
try:
|
||||
resp = await client.post(
|
||||
f"{endpoint.url}/api/generate",
|
||||
json={"model": model, "prompt": prompt, "stream": False, "options": {"temperature": 0.1}},
|
||||
json={
|
||||
"model": model,
|
||||
"prompt": prompt,
|
||||
"stream": False,
|
||||
# Preserve response-body compatibility with Ollama 0.24 thinking models.
|
||||
"think": False,
|
||||
"options": {"temperature": 0.1},
|
||||
},
|
||||
)
|
||||
resp.raise_for_status()
|
||||
return resp.json().get("response", "")
|
||||
|
||||
Reference in New Issue
Block a user