Disable Ollama thinking to fix timeout with Qwen 3.5

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
prosolis
2026-03-14 11:57:21 -07:00
parent 4762493130
commit 4b53af776b
3 changed files with 3 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ func callOllama(host, model, prompt string) (string, error) {
"model": model, "model": model,
"prompt": prompt, "prompt": prompt,
"stream": false, "stream": false,
"think": false,
"options": map[string]interface{}{ "options": map[string]interface{}{
"num_ctx": 8192, "num_ctx": 8192,
}, },

View File

@@ -481,6 +481,7 @@ type ollamaRequest struct {
Model string `json:"model"` Model string `json:"model"`
Prompt string `json:"prompt"` Prompt string `json:"prompt"`
Stream bool `json:"stream"` Stream bool `json:"stream"`
Think bool `json:"think"`
} }
// ollamaResponse is the response from the Ollama API. // ollamaResponse is the response from the Ollama API.

View File

@@ -318,6 +318,7 @@ Respond with ONLY "yes" or "no".`, message, word)
"model": model, "model": model,
"prompt": prompt, "prompt": prompt,
"stream": false, "stream": false,
"think": false,
} }
data, err := json.Marshal(payload) data, err := json.Marshal(payload)
if err != nil { if err != nil {