From 4b53af776b5079e04e4a054737f39c3849542098 Mon Sep 17 00:00:00 2001 From: prosolis <5590409+prosolis@users.noreply.github.com> Date: Sat, 14 Mar 2026 11:57:21 -0700 Subject: [PATCH] Disable Ollama thinking to fix timeout with Qwen 3.5 Co-Authored-By: Claude Opus 4.6 --- internal/plugin/howami.go | 1 + internal/plugin/llm_passive.go | 1 + internal/plugin/wotd.go | 1 + 3 files changed, 3 insertions(+) diff --git a/internal/plugin/howami.go b/internal/plugin/howami.go index 056109d..f478a57 100644 --- a/internal/plugin/howami.go +++ b/internal/plugin/howami.go @@ -184,6 +184,7 @@ func callOllama(host, model, prompt string) (string, error) { "model": model, "prompt": prompt, "stream": false, + "think": false, "options": map[string]interface{}{ "num_ctx": 8192, }, diff --git a/internal/plugin/llm_passive.go b/internal/plugin/llm_passive.go index 0681efa..60c8d2b 100644 --- a/internal/plugin/llm_passive.go +++ b/internal/plugin/llm_passive.go @@ -481,6 +481,7 @@ type ollamaRequest struct { Model string `json:"model"` Prompt string `json:"prompt"` Stream bool `json:"stream"` + Think bool `json:"think"` } // ollamaResponse is the response from the Ollama API. diff --git a/internal/plugin/wotd.go b/internal/plugin/wotd.go index 2809e4e..e284d7c 100644 --- a/internal/plugin/wotd.go +++ b/internal/plugin/wotd.go @@ -318,6 +318,7 @@ Respond with ONLY "yes" or "no".`, message, word) "model": model, "prompt": prompt, "stream": false, + "think": false, } data, err := json.Marshal(payload) if err != nil {