From 6cdb00444f6866d6b14b205916110daca4a92f0a Mon Sep 17 00:00:00 2001 From: Mic Date: Mon, 9 Jun 2025 20:52:00 +0200 Subject: [PATCH] add 'Enable thinking' option for Ollama in settings and UI. see #398 --- _locales/en/messages.json | 8 ++++++++ options/mzta-options-default.js | 1 + options/mzta-options.html | 11 +++++++++++ 3 files changed, 20 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 53a3d6e6..cf8205cf 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -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": "" } } \ No newline at end of file diff --git a/options/mzta-options-default.js b/options/mzta-options-default.js index cb4384d5..e3525108 100644 --- a/options/mzta-options-default.js +++ b/options/mzta-options-default.js @@ -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: '', diff --git a/options/mzta-options.html b/options/mzta-options.html index 4276c2a5..ae815fb1 100644 --- a/options/mzta-options.html +++ b/options/mzta-options.html @@ -316,6 +316,17 @@ + + + + + +