mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
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:
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user