~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
fix: prevent max_tokens NameError, propagate Ollama ValueError, fix hook (#2917)
LearningCircuit8b2a03e76579
diff --git a/.pre-commit-hooks/check-golden-master-settings.py b/.pre-commit-hooks/check-golden-master-settings.pyindex 0e8edd1d38..3a4c1a2f17 100755--- a/.pre-commit-hooks/check-golden-master-settings.py+++ b/.pre-commit-hooks/check-golden-master-settings.py@@ -5,6 +5,47 @@ import subprocessimport sys+def _find_venv_python():+ """Find the project's venv Python interpreter."""+ import pathlib++ for candidate in [+ pathlib.Path(".venv/bin/python"),+ pathlib.Path("venv/bin/python"),+ ]:+ if candidate.exists():+ return str(candidate)+ return sys.executable+++def _golden_master_is_stale():+ """Regenerate golden master in-place and check if git sees a diff."""+ golden_master = "tests/settings/golden_master_settings.json"+ python = _find_venv_python()+ try:+ result = subprocess.run(+ [python, "scripts/dev/regenerate_golden_master.py"],+ capture_output=True,+ text=True,+ timeout=30,+ )+ if result.returncode != 0:+ return True+ # Check if regeneration changed the file+ diff = subprocess.run(+ ["git", "diff", "--quiet", golden_master],+ capture_output=True,+ )+ # Restore original+ subprocess.run(+ ["git", "checkout", "--", golden_master],+ capture_output=True,+ )+ return diff.returncode != 0+ except Exception:+ return True++def main():result = subprocess.run(["git", "diff", "--cached", "--name-only"],@@ -29,6 +70,10 @@ def main():if golden_master in staged_files:return 0+ # Only fail if the golden master is actually out of date+ if not _golden_master_is_stale():+ return 0+print("ERROR: Default settings changed but golden master not updated!")print()print(" Staged files that affect settings:")diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.pyindex 9a34d76060..5f4603cde2 100644--- a/src/local_deep_research/config/llm_config.py+++ b/src/local_deep_research/config/llm_config.py@@ -361,6 +361,7 @@ def get_llm(f"Context limit not set: research_context={bool(research_context)}, context_window_size={context_window_size}")+ max_tokens = Noneif get_setting_from_snapshot("llm.supports_max_tokens", True, settings_snapshot=settings_snapshot):diff --git a/src/local_deep_research/llm/providers/implementations/ollama.py b/src/local_deep_research/llm/providers/implementations/ollama.pyindex aedf7aed5c..e99e2bca56 100644--- a/src/local_deep_research/llm/providers/implementations/ollama.py+++ b/src/local_deep_research/llm/providers/implementations/ollama.py@@ -168,6 +168,8 @@ class OllamaProvider(BaseLLMProvider):raise ValueError(f"Model '{model_name}' not found in Ollama")+ except ValueError:+ raiseexcept Exception:logger.debug(f"Error checking for model '{model_name}' in Ollama",