[PR #12289] [MERGED] server: skip parsing initial <think> if provided in the prompt for /api/generate #76063

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12289
Author: @rick-github
Created: 9/15/2025
Status: Merged
Merged: 9/17/2025
Merged by: @jmorganca

Base: mainHead: generate-thinking


📝 Commits (1)

  • 2405deb server: skip parsing initial if provided in the prompt for /api/generate

📊 Changes

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

View changed files

📝 server/routes.go (+3 -0)

📄 Description

Same as https://github.com/ollama/ollama/pull/12024 but for /api/generate.


🔄 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/12289 **Author:** [@rick-github](https://github.com/rick-github) **Created:** 9/15/2025 **Status:** ✅ Merged **Merged:** 9/17/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `generate-thinking` --- ### 📝 Commits (1) - [`2405deb`](https://github.com/ollama/ollama/commit/2405deb1339a7a6127c88fa27113d4afe556b709) server: skip parsing initial <think> if provided in the prompt for /api/generate ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+3 -0) </details> ### 📄 Description Same as https://github.com/ollama/ollama/pull/12024 but for /api/generate. --- <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:31:33 -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#76063