[PR #10990] [MERGED] move thinking logic into its own package #44654

Closed
opened 2026-04-25 00:15:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10990
Author: @drifkin
Created: 6/5/2025
Status: Merged
Merged: 6/6/2025
Merged by: @drifkin

Base: mainHead: drifkin/export-thinking-parser


📝 Commits (2)

📊 Changes

6 files changed (+281 additions, -269 deletions)

View changed files

📝 server/images.go (+2 -1)
📝 server/routes.go (+8 -7)
📝 thinking/parser.go (+4 -133)
📝 thinking/parser_test.go (+3 -128)
thinking/template.go (+134 -0)
thinking/template_test.go (+130 -0)

📄 Description

No description provided


🔄 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/10990 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 6/5/2025 **Status:** ✅ Merged **Merged:** 6/6/2025 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `main` ← **Head:** `drifkin/export-thinking-parser` --- ### 📝 Commits (2) - [`a27f605`](https://github.com/ollama/ollama/commit/a27f605140909e422ed7a2c32b77f9cdc1ea42c8) move thinking logic into its own package - [`8bd72bf`](https://github.com/ollama/ollama/commit/8bd72bf0a70e6f33d8b0da9d28700acf0d9cf605) fix lint ### 📊 Changes **6 files changed** (+281 additions, -269 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+2 -1) 📝 `server/routes.go` (+8 -7) 📝 `thinking/parser.go` (+4 -133) 📝 `thinking/parser_test.go` (+3 -128) ➕ `thinking/template.go` (+134 -0) ➕ `thinking/template_test.go` (+130 -0) </details> ### 📄 Description _No description provided_ --- <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:15:49 -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#44654