[PR #10965] [CLOSED] Fix thinking mode producing invalid JSON with structured output #23942

Closed
opened 2026-04-19 17:17:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10965
Author: @Samiii777
Created: 6/4/2025
Status: Closed

Base: mainHead: fix-thinking-json-conflict


📝 Commits (1)

  • a877931 Fix thinking mode producing invalid JSON - Fixes #10929

📊 Changes

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

View changed files

📝 llm/server.go (+11 -5)
📝 server/routes.go (+19 -3)

📄 Description

fixes #10929


🔄 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/10965 **Author:** [@Samiii777](https://github.com/Samiii777) **Created:** 6/4/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-thinking-json-conflict` --- ### 📝 Commits (1) - [`a877931`](https://github.com/ollama/ollama/commit/a8779316b9dda7c49a89e5aafcbc87dc0f009d1b) Fix thinking mode producing invalid JSON - Fixes #10929 ### 📊 Changes **2 files changed** (+30 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `llm/server.go` (+11 -5) 📝 `server/routes.go` (+19 -3) </details> ### 📄 Description fixes [#10929](https://github.com/ollama/ollama/issues/10929) --- <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-19 17:17:51 -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#23942