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.

Merge branch 'dev' into fix/issue-594-remove-settings-wrapper

LearningCircuitfdb73f562096
diff --cc src/local_deep_research/config/llm_config.py
index f3ffdf93f4,9c47846b23..198f592a59
--- a/src/local_deep_research/config/llm_config.py
+++ b/src/local_deep_research/config/llm_config.py
@@@ -460,14 -438,9 +460,15 @@@ def get_llm
api_key = get_setting_from_snapshot(
"llm.anthropic.api_key", settings_snapshot=settings_snapshot
)
+
+ # Check LDR-prefixed environment variable
+ if not api_key:
+ api_key = os.environ.get("LDR_LLM_ANTHROPIC_API_KEY")
+
if not api_key:
logger.warning(
- "Anthropic API key not found in settings or environment. Falling back to default model."
+ "Anthropic API key not found in settings or LDR_LLM_ANTHROPIC_API_KEY environment variable. Falling back to default model."
++
)
return get_fallback_model(temperature)
@@@ -486,14 -459,9 +487,10 @@@
api_key = get_setting_from_snapshot(
"llm.openai.api_key", settings_snapshot=settings_snapshot
)
+
- # Check LDR-prefixed environment variable
- if not api_key:
- api_key = os.environ.get("LDR_LLM_OPENAI_API_KEY")
-
if not api_key:
logger.warning(
- "OpenAI API key not found in settings or environment. Falling back to default model."
+ "OpenAI API key not found in settings or LDR_LLM_OPENAI_API_KEY environment variable. Falling back to default model."
)
return get_fallback_model(temperature)