[PR #12914] server: add ThinkLevel capability #24537

Open
opened 2026-04-19 17:37:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12914
Author: @rick-github
Created: 11/2/2025
Status: 🔄 Open

Base: mainHead: thinkinglevel


📝 Commits (1)

  • 2cf63cd server: add ThinkLevel capability

📊 Changes

3 files changed (+19 additions, -8 deletions)

View changed files

📝 server/images.go (+10 -0)
📝 server/routes.go (+8 -8)
📝 types/model/capability.go (+1 -0)

📄 Description

Currently the gpt-oss models support setting the thinking level. Other models also support setting a thinking level (eg seed-oss) but currently this information can't be passed to the template. This PR uses the presence of .ThinkLevel in the template to determine whether the think level can be set.


🔄 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/12914 **Author:** [@rick-github](https://github.com/rick-github) **Created:** 11/2/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `thinkinglevel` --- ### 📝 Commits (1) - [`2cf63cd`](https://github.com/ollama/ollama/commit/2cf63cd8eb7871d6d4b6661985c8759e94583cec) server: add ThinkLevel capability ### 📊 Changes **3 files changed** (+19 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+10 -0) 📝 `server/routes.go` (+8 -8) 📝 `types/model/capability.go` (+1 -0) </details> ### 📄 Description Currently the gpt-oss models support setting the thinking level. Other models also support setting a thinking level (eg seed-oss) but currently this information can't be passed to the template. This PR uses the presence of `.ThinkLevel` in the template to determine whether the think level can be set. --- <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:37:54 -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#24537