[PR #13553] cmd: hide thinking output when nothink mode is set #60964

Open
opened 2026-04-29 16:03:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13553
Author: @nathannewyen
Created: 12/23/2025
Status: 🔄 Open

Base: mainHead: fix/nothink-output


📝 Commits (1)

  • 6c136ad cmd: hide thinking output when nothink mode is set

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 cmd/interactive.go (+2 -0)

📄 Description

When /set nothink is called, also set HideThinking to true so that
thinking output is not displayed even if the model still generates it.

Some models (like deepseek-r1) continue to generate thinking content regardless
of the think: false API setting. This change ensures the thinking output
is hidden from the user when they explicitly set nothink mode.

Similarly, /set think now sets HideThinking to false to ensure
thinking is shown when enabled.

Fixes #13493


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13553 **Author:** [@nathannewyen](https://github.com/nathannewyen) **Created:** 12/23/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/nothink-output` --- ### 📝 Commits (1) - [`6c136ad`](https://github.com/ollama/ollama/commit/6c136adbb2630613c4c9616f44964506a6a3c2e8) cmd: hide thinking output when nothink mode is set ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+2 -0) </details> ### 📄 Description When `/set nothink` is called, also set `HideThinking` to `true` so that thinking output is not displayed even if the model still generates it. Some models (like deepseek-r1) continue to generate thinking content regardless of the `think: false` API setting. This change ensures the thinking output is hidden from the user when they explicitly set nothink mode. Similarly, `/set think` now sets `HideThinking` to `false` to ensure thinking is shown when enabled. Fixes #13493 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:03:52 -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#60964