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: don't overwrite settings_snapshot parameter in _init_search_system

LearningCircuita445f0339a0c
diff --git a/src/local_deep_research/api/research_functions.py b/src/local_deep_research/api/research_functions.py
index 4dc4dcff25..e80f89706b 100644
--- a/src/local_deep_research/api/research_functions.py
+++ b/src/local_deep_research/api/research_functions.py
@@ -99,7 +99,9 @@ def _init_search_system(
# Set the search engine if specified or get from settings
search_engine = None
- settings_snapshot = kwargs.get("settings_snapshot")
+ # Use settings_snapshot from function params, or fall back to kwargs if not provided
+ if settings_snapshot is None:
+ settings_snapshot = kwargs.get("settings_snapshot")
# If no search_tool provided, get from settings_snapshot
if not search_tool and settings_snapshot: