~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: Explicitly pass settings_snapshot in llm_config.py
LearningCircuit0e1c6cd2ac83
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.pyindex a080b19f89..9983b316f2 100644--- a/src/local_deep_research/config/llm_config.py+++ b/src/local_deep_research/config/llm_config.py@@ -213,8 +213,10 @@ def get_available_providers(settings_snapshot=None):return providers-def get_selected_llm_provider():- return get_setting_from_snapshot("llm.provider", "ollama").lower()+def get_selected_llm_provider(settings_snapshot=None):+ return get_setting_from_snapshot(+ "llm.provider", "ollama", settings_snapshot=settings_snapshot+ ).lower()def get_llm(@@ -307,25 +309,45 @@ def get_llm(if ((provider == "openai"- and get_setting_from_snapshot("llm.openai.api_key")+ and get_setting_from_snapshot(+ "llm.openai.api_key", settings_snapshot=settings_snapshot+ ))or (provider == "anthropic"- and get_setting_from_snapshot("llm.anthropic.api_key")+ and get_setting_from_snapshot(+ "llm.anthropic.api_key", settings_snapshot=settings_snapshot+ ))or (provider == "openai_endpoint"- and get_setting_from_snapshot("llm.openai_endpoint.api_key")+ and get_setting_from_snapshot(+ "llm.openai_endpoint.api_key",+ settings_snapshot=settings_snapshot,+ )+ )+ or (+ provider == "ollama"+ and is_ollama_available(settings_snapshot=settings_snapshot))- or (provider == "ollama" and is_ollama_available())):provider_has_config = Trueelif provider in ["vllm", "lmstudio", "llamacpp"]:# These are local providers, check their availabilityif ((provider == "vllm" and is_vllm_available())- or (provider == "lmstudio" and is_lmstudio_available())- or (provider == "llamacpp" and is_llamacpp_available())+ or (+ provider == "lmstudio"+ and is_lmstudio_available(+ settings_snapshot=settings_snapshot+ )+ )+ or (+ provider == "llamacpp"+ and is_llamacpp_available(+ settings_snapshot=settings_snapshot+ )+ )):provider_has_config = True@@ -645,7 +667,9 @@ def get_llm(# Get LlamaCpp connection mode from settingsconnection_mode = get_setting_from_snapshot(- "llm.llamacpp_connection_mode", "local"+ "llm.llamacpp_connection_mode",+ "local",+ settings_snapshot=settings_snapshot,)if connection_mode == "http":@@ -653,13 +677,17 @@ def get_llm(from langchain_community.llms.llamacpp_client import LlamaCppClientserver_url = get_setting_from_snapshot(- "llm.llamacpp_server_url", "http://localhost:8000"+ "llm.llamacpp_server_url",+ "http://localhost:8000",+ settings_snapshot=settings_snapshot,)llm = LlamaCppClient(server_url=server_url,temperature=temperature,- max_tokens=get_setting_from_snapshot("llm.max_tokens", 8192),+ max_tokens=get_setting_from_snapshot(+ "llm.max_tokens", 8192, settings_snapshot=settings_snapshot+ ),)else:# Use direct model loading (existing code)