[GH-ISSUE #14585] 使用ollama api调用qwen3.5时如何关闭思考模式 #35216

Closed
opened 2026-04-22 19:35:57 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @lonely-devil on GitHub (Mar 3, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14585

Image

qwen3.5的思考链和之前的不一样,之前的/no_think 不起作用

Originally created by @lonely-devil on GitHub (Mar 3, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14585 <img width="910" height="930" alt="Image" src="https://github.com/user-attachments/assets/3947a315-954b-4673-b5f6-7be5b767d30d" /> qwen3.5的思考链和之前的不一样,之前的/no_think 不起作用
GiteaMirror added the question label 2026-04-22 19:35:57 -05:00
Author
Owner

@rick-github commented on GitHub (Mar 3, 2026):

Set "reasoning_effort":"none".

$ curl -s localhost:11434/v1/chat/completions -d '{
  "model":"qwen3.5:35b",
  "messages":[{"role":"user","content":"hello"}],
  "reasoning_effort":"none"
}' | jq
{
  "id": "chatcmpl-832",
  "object": "chat.completion",
  "created": 1772532404,
  "model": "qwen3.5:35b",
  "system_fingerprint": "fp_ollama",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 13,
    "completion_tokens": 10,
    "total_tokens": 23
  }
}
<!-- gh-comment-id:3989982926 --> @rick-github commented on GitHub (Mar 3, 2026): Set `"reasoning_effort":"none"`. ```console $ curl -s localhost:11434/v1/chat/completions -d '{ "model":"qwen3.5:35b", "messages":[{"role":"user","content":"hello"}], "reasoning_effort":"none" }' | jq { "id": "chatcmpl-832", "object": "chat.completion", "created": 1772532404, "model": "qwen3.5:35b", "system_fingerprint": "fp_ollama", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Hello! How can I help you today?" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 13, "completion_tokens": 10, "total_tokens": 23 } } ```
Author
Owner

@huanggou666 commented on GitHub (Mar 4, 2026):

千问 openclaw调用 ollama qwen3.5 35b怎么关闭thinking

<!-- gh-comment-id:3995598487 --> @huanggou666 commented on GitHub (Mar 4, 2026): 千问 openclaw调用 ollama qwen3.5 35b怎么关闭thinking
Author
Owner

@rick-github commented on GitHub (Mar 4, 2026):

https://github.com/openclaw/openclaw/issues

<!-- gh-comment-id:3995695266 --> @rick-github commented on GitHub (Mar 4, 2026): https://github.com/openclaw/openclaw/issues
Author
Owner

@letmego2022 commented on GitHub (Mar 11, 2026):

        # 添加这个 extra_body 参数来禁用思考
        # extra_body={
        #     "reasoning_effort": "none"  # 关键:这会强制关闭模型的推理深度
        #     },  

用openai sdk 用这个可以 但是添加上之后会变得”弱智“

<!-- gh-comment-id:4036908321 --> @letmego2022 commented on GitHub (Mar 11, 2026): # 添加这个 extra_body 参数来禁用思考 # extra_body={ # "reasoning_effort": "none" # 关键:这会强制关闭模型的推理深度 # }, 用openai sdk 用这个可以 但是添加上之后会变得”弱智“
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#35216