add 'Enable thinking' option for Ollama in settings and UI. see #398

This commit is contained in:
Mic 2025-06-09 20:52:00 +02:00
parent 521b6a8fea
commit 6cdb00444f
3 changed files with 20 additions and 0 deletions

View file

@ -1547,5 +1547,13 @@
"ChatGPT_StoreFlag_info": {
"message": "If checked, your chats will be stored by OpenAI.",
"description": ""
},
"prefs_ollama_think": {
"message": "Enable thinking",
"description": ""
},
"prefs_ollama_think_Info": {
"message": "If checked, the Model will think before answering. This option works only with models that support the 'think' feature.",
"description": ""
}
}

View file

@ -36,6 +36,7 @@ export const prefs_default = {
ollama_host: '',
ollama_model: '',
ollama_num_ctx: 0,
ollama_think: false,
openai_comp_host: '', // For OpenAI Compatible API as LM-Studio
openai_comp_model: '',
openai_comp_api_key: '',

View file

@ -316,6 +316,17 @@
</label>
</td>
</tr>
<tr class="conntype_ollama_api">
<td><label>
<span class="opt_title">__MSG_prefs_ollama_think__</span>
</label></td>
<td>
<label>
<input type="checkbox" id="ollama_think" name="ollama_think" class="option-input"/>
__MSG_prefs_ollama_think_Info__
</label>
</td>
</tr>
<tr class="conntype_ollama_api">
<td><label>
<span class="opt_title">__MSG_prefs_ollama_num_ctx__ <i>[num_ctx]</i></span>