HowDoesAIDoThat?

Questions / practical answer

How do I turn off thinking in Ollama?

Get straight to the answer with Ollama’s thinking controls, check what your model supports and save the final text.

By HowDoesAIDoThatSources checked 12 October 2026

Get straight to the answer

For an Ollama model that supports turning thinking off, start it with --think=false or enter /set nothink in its interactive chat. --hidethinking keeps thinking enabled and hides the displayed trace. The thinking announcement explains the difference.

A direct answer can be more convenient for a quick rewrite or classification. Keep thinking available for tasks where it helps you. You need Ollama installed and an existing model; check its supported modes first.

1. Check the model and version

Open a terminal and run:

ollama --version
ollama ls
ollama run --help

Copy the full model tag, including its size or suffix. Use it for YOUR_EXISTING_MODEL_TAG below. Check your CLI help includes --think and --hidethinking; see the CLI reference and command source.

Thinking-only and instruct variants can have different controls. If a download starts unexpectedly, cancel and recheck the tag. Use the local-or-cloud check if you want this to stay on your PC.

2. Turn thinking off in the terminal

For one question, substitute your existing model tag:

ollama run YOUR_EXISTING_MODEL_TAG --think=false "Rewrite: We will get back to you soon."

For an ongoing chat, run ollama run YOUR_EXISTING_MODEL_TAG, then enter these lines at the >>> prompt, one at a time:

/set nothink
Rewrite: We will get back to you soon.

To turn thinking back on, enter /set think when your model supports it. This changes the terminal session; set the mode separately in another app. The interactive source covers those commands.

To keep thinking enabled while showing only the answer, use --hidethinking. Copy the answer from the terminal or use the export below.

3. Check the supported controls

With your local server running on its usual port, open PowerShell and paste:

$thinkModel = (Read-Host 'Exact existing model tag').Trim()
$thinkApi = 'http://127.0.0.1:11434'
$thinkInfo = Invoke-RestMethod -UseBasicParsing -Method Post `
    -Uri "$thinkApi/api/show" -ContentType 'application/json' `
    -Body (@{model = $thinkModel} | ConvertTo-Json)
$thinkInfo.thinking | ConvertTo-Json -Depth 4

Read the returned values and default; the model-details reference explains them.

  • false and true: use the model's on/off controls.
  • Named levels, such as low, medium and high: use one listed name exactly. For GPT-OSS, low is lower effort rather than an off switch.
  • Only false: the model has no thinking mode.
  • No thinking object: check the model documentation and installed version for its controls.

Unsupported level names may fall back to the default, according to the thinking guide. Use that model's controls rather than another app's setting names. Update Ollama separately if your version lacks the required support.

4. Save only the final answer

If the model supports false, continue in the same PowerShell window. This sends one short request and saves the final text as ollama-direct-answer.txt. Use a fresh folder if the filename already exists.

$ErrorActionPreference = 'Stop'
$thinkOutput = Join-Path (Get-Location).Path 'ollama-direct-answer.txt'
if (Test-Path -LiteralPath $thinkOutput) { throw 'Output already exists.' }
$thinkBody = @{
    model = $thinkModel
    think = $false
    stream = $false
    messages = @(@{
        role = 'user'
        content = 'Rewrite: We will get back to you soon.'
    })
} | ConvertTo-Json -Depth 5
$thinkResult = Invoke-RestMethod -UseBasicParsing -Method Post `
    -Uri "$thinkApi/api/chat" -ContentType 'application/json' `
    -Body $thinkBody -TimeoutSec 300
if ($thinkResult.done -ne $true -or
    [string]::IsNullOrWhiteSpace($thinkResult.message.content)) {
    throw 'No complete text answer returned. Inspect the response.'
}
$thinkBytes = [System.Text.Encoding]::UTF8.GetBytes($thinkResult.message.content)
$thinkFile = [System.IO.File]::Open($thinkOutput, [System.IO.FileMode]::CreateNew)
try { $thinkFile.Write($thinkBytes, 0, $thinkBytes.Length) }
finally { $thinkFile.Dispose() }
Get-Content -LiteralPath $thinkOutput -Encoding UTF8

Put think beside model and messages, rather than inside options. With stream = false, the chat API returns one JSON response. The script writes message.content, leaving message.thinking out of the file.

Microsoft's REST reference and file modes cover the request and protected export. Open the saved .txt to check the wording.

If the setting seems to do nothing

It works in the terminal but not the app. Check the app's model settings. A collapsed panel may hide the trace while leaving thinking on. See the UI discussion.

You are using GPT-OSS or named levels. Choose a supported level. The OpenAI compatibility interface uses reasoning_effort conversions; use native fields for a native /api/chat request.

A prompt trick or Modelfile fails. PARAMETER thinking false is absent from the Modelfile parameters. Qwen3's /no_think instructions are model-specific. Start with Ollama's native controls above.

The answer is still slow. Start a fresh short chat. Loading, model size and history can still take time; follow the speed checks for those.

Does cloud hosting help?

An existing local model lets you try its modes without a hosted subscription. Ollama Cloud is useful when the model is too demanding for your PC; check its plans. Choose the model for its supported modes first, then choose where to run it.

Sources

Primary references checked 12 October 2026.