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: properly extract search.tool from settings snapshot

LearningCircuit9e31b76d2ff0
diff --git a/src/local_deep_research/api/research_functions.py b/src/local_deep_research/api/research_functions.py
index b6d048b791..4dc4dcff25 100644
--- a/src/local_deep_research/api/research_functions.py
+++ b/src/local_deep_research/api/research_functions.py
@@ -11,6 +11,7 @@ from local_deep_research.settings.logger import log_settings
from ..config.llm_config import get_llm
from ..config.search_config import get_search
+from ..config.thread_settings import get_setting_from_snapshot
from ..report_generator import IntegratedReportGenerator
from ..search_system import AdvancedSearchSystem
from ..utilities.db_utils import no_db_settings
@@ -102,7 +103,9 @@ def _init_search_system(
# If no search_tool provided, get from settings_snapshot
if not search_tool and settings_snapshot:
- search_tool = settings_snapshot.get("search.tool")
+ search_tool = get_setting_from_snapshot(
+ "search.tool", settings_snapshot=settings_snapshot
+ )
if search_tool:
search_engine = get_search(