[PR #11765] [MERGED] openai: always provide reasoning #12357

Closed
opened 2025-11-12 16:34:06 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11765
Author: @drifkin
Created: 8/7/2025
Status: Merged
Merged: 8/7/2025
Merged by: @drifkin

Base: mainHead: drifkin/thinking-without-content


📝 Commits (1)

  • 735c41f openai: always provide reasoning

📊 Changes

2 files changed (+79 additions, -1 deletions)

View changed files

📝 openai/openai.go (+2 -1)
📝 openai/openai_test.go (+77 -0)

📄 Description

We were missing passing along thinking if content was nil (as opposed to empty string)

Also added a test for content not being passed, which was the real cause of https://github.com/ollama/ollama/issues/11704, since with the way Content is typed, not passing it and empty string are distinct


🔄 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/11765 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 8/7/2025 **Status:** ✅ Merged **Merged:** 8/7/2025 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `main` ← **Head:** `drifkin/thinking-without-content` --- ### 📝 Commits (1) - [`735c41f`](https://github.com/ollama/ollama/commit/735c41f9ca38fd2507c3e8e93efe6bbb94455a6f) openai: always provide reasoning ### 📊 Changes **2 files changed** (+79 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `openai/openai.go` (+2 -1) 📝 `openai/openai_test.go` (+77 -0) </details> ### 📄 Description We were missing passing along thinking if content was nil (as opposed to empty string) Also added a test for content not being passed, which was the real cause of <https://github.com/ollama/ollama/issues/11704>, since with the way `Content` is typed, not passing it and empty string are distinct --- <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 2025-11-12 16:34:06 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12357