~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
feat: add Ollama reasoning mode support for models like deepseek-r1
tombiid77d975f2ed7
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.pyindex c3c280b2ac..3b8d7f892f 100644--- a/src/local_deep_research/config/llm_config.py+++ b/src/local_deep_research/config/llm_config.py@@ -705,6 +705,21 @@ def get_llm(ollama_params = {**common_params}if context_window_size is not None:ollama_params["num_ctx"] = context_window_size++ # Handle reasoning/thinking content from models like deepseek-r1+ # When reasoning=True, thinking content is excluded from the main+ # response and stored in additional_kwargs["reasoning_content"]+ reasoning_mode = get_setting_from_snapshot(+ "llm.ollama.reasoning",+ True, # Default to True to exclude thinking from responses+ settings_snapshot=settings_snapshot,+ )+ if reasoning_mode is not None:+ ollama_params["reasoning"] = reasoning_mode+ logger.debug(+ f"Ollama reasoning mode set to: {reasoning_mode}"+ )+llm = ChatOllama(model=model_name, base_url=base_url, **ollama_params)diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.jsonindex e4b3543917..8eab65914e 100644--- a/src/local_deep_research/defaults/default_settings.json+++ b/src/local_deep_research/defaults/default_settings.json@@ -402,6 +402,20 @@"value": "http://localhost:11434","visible": true},+ "llm.ollama.reasoning": {+ "category": null,+ "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,+ "min_value": null,+ "name": "Ollama Reasoning Mode",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },"llm.provider": {"category": "llm_general","description": "Service provider for the language model",diff --git a/src/local_deep_research/web/static/js/components/progress.js b/src/local_deep_research/web/static/js/components/progress.jsindex 4cbfc695f9..9949392a77 100644--- a/src/local_deep_research/web/static/js/components/progress.js+++ b/src/local_deep_research/web/static/js/components/progress.js@@ -588,7 +588,9 @@// Update page title with progressif (data.progress !== undefined) {- document.title = `Research (${Math.floor(data.progress)}%) - Local Deep Research`;+ // Ensure progress is capped at 100% for page title+ const cappedProgress = Math.max(0, Math.min(100, Math.floor(data.progress)));+ document.title = `Research (${cappedProgress}%) - Local Deep Research`;}// Update favicon based on status