[PR #12520] [CLOSED] thinking: force newer qwen3 models to always use thinking #45105

Closed
opened 2026-04-25 00:47:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12520
Author: @pdevine
Created: 10/7/2025
Status: Closed

Base: mainHead: pdevine/qwen3-more-thinking


📝 Commits (1)

  • f580006 thinking: force newer qwen3 models to always use thinking

📊 Changes

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

View changed files

📝 server/routes.go (+17 -2)

📄 Description

This PR changes the default behaviour for the qwen3:*b-thinking-2507 models to respond with the thinking output in the thinking field. For the v1/chat/completions endpoint, the reasoning field will be automatically filled in.

Users can still turn off this behaviour by passing "think": false to the API call, but the initial <think> tag will not be prepended to the response.


🔄 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/12520 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 10/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pdevine/qwen3-more-thinking` --- ### 📝 Commits (1) - [`f580006`](https://github.com/ollama/ollama/commit/f580006d109850f90930ea261ef300319078adb4) thinking: force newer qwen3 models to always use thinking ### 📊 Changes **1 file changed** (+17 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+17 -2) </details> ### 📄 Description This PR changes the default behaviour for the `qwen3:*b-thinking-2507` models to respond with the thinking output in the `thinking` field. For the `v1/chat/completions` endpoint, the `reasoning` field will be automatically filled in. Users can still turn off this behaviour by passing `"think": false` to the API call, but the initial `<think>` tag will not be prepended to the response. --- <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-25 00:47:24 -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#45105