[PR #12555] [MERGED] thinking: allow "think": false for non-thinking models #76167

Closed
opened 2026-05-05 08:40:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12555
Author: @pdevine
Created: 10/10/2025
Status: Merged
Merged: 10/10/2025
Merged by: @pdevine

Base: mainHead: pdevine/more-thinking


📝 Commits (1)

  • 5a61986 thinking: allow "think": false for non-thinking models

📊 Changes

2 files changed (+30 additions, -11 deletions)

View changed files

📝 server/routes.go (+14 -10)
📝 server/routes_generate_test.go (+16 -1)

📄 Description

This change moves back to allowing non-thinking models to call the /api/chat and /api/generate endpoints w/ "think": false set.


🔄 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/12555 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 10/10/2025 **Status:** ✅ Merged **Merged:** 10/10/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/more-thinking` --- ### 📝 Commits (1) - [`5a61986`](https://github.com/ollama/ollama/commit/5a61986f851479bd7719cf566777c6aa5b0d7076) thinking: allow `"think": false` for non-thinking models ### 📊 Changes **2 files changed** (+30 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+14 -10) 📝 `server/routes_generate_test.go` (+16 -1) </details> ### 📄 Description This change moves back to allowing non-thinking models to call the `/api/chat` and `/api/generate` endpoints w/ `"think": false` set. --- <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-05-05 08:40:05 -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#76167