[PR #14618] cmd: improve think handling #77044

Open
opened 2026-05-05 09:45:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14618
Author: @rick-github
Created: 3/4/2026
Status: 🔄 Open

Base: mainHead: cli-think


📝 Commits (1)

  • be73d8f cli: improve think handling

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 cmd/interactive.go (+5 -1)

📄 Description

Prevent exit from the CLI by shortening the match string so it also matches the return error think value %q is not supported for this model. There are no other error message that will match.

Do basic validation on the think value so that /set think true and /set think false work as expected.

Fixes: #14612
Fixes: #14614


🔄 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/14618 **Author:** [@rick-github](https://github.com/rick-github) **Created:** 3/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `cli-think` --- ### 📝 Commits (1) - [`be73d8f`](https://github.com/ollama/ollama/commit/be73d8fc904cd05103b54480838b63dcaf198e7e) cli: improve think handling ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+5 -1) </details> ### 📄 Description Prevent exit from the CLI by shortening the match string so it also matches the return error `think value %q is not supported for this model`. There are no other error message that will match. Do basic validation on the `think` value so that `/set think true` and `/set think false` work as expected. Fixes: #14612 Fixes: #14614 --- <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 09:45:57 -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#77044