add 'Enable thinking' option for Ollama in settings and UI. see #398
This commit is contained in:
parent
521b6a8fea
commit
6cdb00444f
3 changed files with 20 additions and 0 deletions
|
|
@ -1547,5 +1547,13 @@
|
||||||
"ChatGPT_StoreFlag_info": {
|
"ChatGPT_StoreFlag_info": {
|
||||||
"message": "If checked, your chats will be stored by OpenAI.",
|
"message": "If checked, your chats will be stored by OpenAI.",
|
||||||
"description": ""
|
"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": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -36,6 +36,7 @@ export const prefs_default = {
|
||||||
ollama_host: '',
|
ollama_host: '',
|
||||||
ollama_model: '',
|
ollama_model: '',
|
||||||
ollama_num_ctx: 0,
|
ollama_num_ctx: 0,
|
||||||
|
ollama_think: false,
|
||||||
openai_comp_host: '', // For OpenAI Compatible API as LM-Studio
|
openai_comp_host: '', // For OpenAI Compatible API as LM-Studio
|
||||||
openai_comp_model: '',
|
openai_comp_model: '',
|
||||||
openai_comp_api_key: '',
|
openai_comp_api_key: '',
|
||||||
|
|
|
||||||
|
|
@ -316,6 +316,17 @@
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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">
|
<tr class="conntype_ollama_api">
|
||||||
<td><label>
|
<td><label>
|
||||||
<span class="opt_title">__MSG_prefs_ollama_num_ctx__ <i>[num_ctx]</i></span>
|
<span class="opt_title">__MSG_prefs_ollama_num_ctx__ <i>[num_ctx]</i></span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue