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.

Extract hardcoded host/port values to use settings

LearningCircuit0c3a19936d9e
diff --git a/src/local_deep_research/news/flask_api.py b/src/local_deep_research/news/flask_api.py
index 5b43c82384..cfdd9bfb7e 100644
--- a/src/local_deep_research/news/flask_api.py
+++ b/src/local_deep_research/news/flask_api.py
@@ -460,10 +460,10 @@ def run_subscription_now(subscription_id: str) -> Dict[str, Any]:
# Call the main research API endpoint (use the one from research blueprint)
import requests
- # Get configured host and port
- # TODO: Per-user settings will be handled later
- host = "127.0.0.1" # Default: web.host
- port = 5000 # Default: web.port
+ # Get configured host and port from settings
+ 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 = requests.post(
f"http://{host}:{port}/research/api/start_research",
@@ -968,9 +968,10 @@ def check_overdue_subscriptions():
import requests
from flask import request
- # Get configured host and port
- host = "127.0.0.1"
- port = 5000
+ # Get configured host and port from settings
+ 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")