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: simplify internal API calls to always use localhost

LearningCircuitba1639d49cd6
diff --git a/src/local_deep_research/news/flask_api.py b/src/local_deep_research/news/flask_api.py
index 2a0b55108a..e29c35f85c 100644
--- a/src/local_deep_research/news/flask_api.py
+++ b/src/local_deep_research/news/flask_api.py
@@ -557,13 +557,12 @@ def run_subscription_now(subscription_id: str) -> Dict[str, Any]:
request_data["custom_endpoint"] = subscription["custom_endpoint"]
# Call the main research API endpoint (use the one from research blueprint)
- # Get configured host and port from settings
+ # Use localhost for internal self-call (server is always reachable at 127.0.0.1)
settings_manager = get_settings_manager()
- host = settings_manager.get_setting("web.host", "127.0.0.1")
port = settings_manager.get_setting("web.port", 5000)
response = safe_post(
- f"http://{host}:{port}/research/api/start_research",
+ f"http://127.0.0.1:{port}/research/api/start_research",
json=request_data,
headers={"Content-Type": "application/json"},
allow_localhost=True,
@@ -1046,16 +1045,15 @@ def check_overdue_subscriptions():
# Make HTTP request to research API
from flask import request
- # Get configured host and port from settings
+ # Use localhost for internal self-call (server is always reachable at 127.0.0.1)
settings_manager = get_settings_manager()
- host = settings_manager.get_setting("web.host", "127.0.0.1")
port = settings_manager.get_setting("web.port", 5000)
# Use the session from the current request to maintain authentication
session_cookie = request.cookies.get("session")
response = safe_post(
- f"http://{host}:{port}/research/api/start_research",
+ f"http://127.0.0.1:{port}/research/api/start_research",
json=request_data,
headers={
"Content-Type": "application/json",