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: Allow scheduler to work with programmatic mode by getting search tool from settings

LearningCircuitad3721ec71d6
diff --git a/src/local_deep_research/api/research_functions.py b/src/local_deep_research/api/research_functions.py
index e8a64f56fc..a3968185fd 100644
--- a/src/local_deep_research/api/research_functions.py
+++ b/src/local_deep_research/api/research_functions.py
@@ -90,11 +90,15 @@ def _init_search_system(
settings_snapshot=settings_snapshot,
)
- # Set the search engine if specified
+ # Set the search engine if specified or get from settings
search_engine = None
+ settings_snapshot = kwargs.get("settings_snapshot")
+
+ # If no search_tool provided, get from settings_snapshot
+ if not search_tool and settings_snapshot:
+ search_tool = settings_snapshot.get("search.tool")
+
if search_tool:
- # Extract settings_snapshot from kwargs if available
- settings_snapshot = kwargs.get("settings_snapshot")
search_engine = get_search(
search_tool,
llm_instance=llm,