Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: improve Ollama reasoning mode settings

tombiie0c5acb27176
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.py
index 3b8d7f892f..b682ef9434 100644
--- a/src/local_deep_research/config/llm_config.py
+++ b/src/local_deep_research/config/llm_config.py
@@ -714,7 +714,9 @@ def get_llm(
True, # Default to True to exclude thinking from responses
settings_snapshot=settings_snapshot,
)
- if reasoning_mode is not None:
+ if reasoning_mode is not None and isinstance(
+ reasoning_mode, bool
+ ):
ollama_params["reasoning"] = reasoning_mode
logger.debug(
f"Ollama reasoning mode set to: {reasoning_mode}"
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json
index 8eab65914e..688b506c7d 100644
--- a/src/local_deep_research/defaults/default_settings.json
+++ b/src/local_deep_research/defaults/default_settings.json
@@ -403,7 +403,7 @@
"visible": true
},
"llm.ollama.reasoning": {
- "category": null,
+ "category": "llm",
"description": "Separate reasoning/thinking content from main response for models like deepseek-r1. When enabled (recommended), thinking is excluded from the final answer.",
"editable": true,
"max_value": null,