[GH-ISSUE #14687] /set think false incorrectly sends string "false" instead of boolean false, causing 400 Bad Request #56018

Closed
opened 2026-04-29 10:08:57 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @22140505 on GitHub (Mar 7, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14687

What is the issue?

Body:
Describe the bug
When using /set think false in the interactive CLI, the value is passed to the API as the string "false" instead of the boolean false. This causes a 400 Bad Request error since the API only accepts boolean true/false or string values "high", "medium", "low".
Steps to Reproduce

Run ollama run (e.g. a model that supports thinking, like deepseek-r1)
In the interactive prompt, type /set think false
Send any message

Expected Behavior
The think parameter should be sent as boolean false, and the request should succeed.
Actual Behavior
Set 'think' mode to 'false'.
error: 400 Bad Request: invalid think value: "false" (must be "high", "medium", "low", true, or false)
The CLI converts the boolean input false into the string "false", which fails API validation.
Environment

OS: win11
Ollama version: 0.17.7
Model: qwen3.5:0.8b

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @22140505 on GitHub (Mar 7, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14687 ### What is the issue? Body: Describe the bug When using /set think false in the interactive CLI, the value is passed to the API as the string "false" instead of the boolean false. This causes a 400 Bad Request error since the API only accepts boolean true/false or string values "high", "medium", "low". Steps to Reproduce Run ollama run <model> (e.g. a model that supports thinking, like deepseek-r1) In the interactive prompt, type /set think false Send any message Expected Behavior The think parameter should be sent as boolean false, and the request should succeed. Actual Behavior Set 'think' mode to 'false'. error: 400 Bad Request: invalid think value: "false" (must be "high", "medium", "low", true, or false) The CLI converts the boolean input false into the string "false", which fails API validation. Environment OS: win11 Ollama version: 0.17.7 Model: qwen3.5:0.8b ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-29 10:08:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#56018