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.

chore: remove the dead /research/api/config endpoint (#4551)

LearningCircuit3b5857591c41
diff --git a/changelog.d/+remove-dead-config-endpoint.removal.md b/changelog.d/+remove-dead-config-endpoint.removal.md
new file mode 100644
index 0000000000..067bfc9d75
--- /dev/null
+++ b/changelog.d/+remove-dead-config-endpoint.removal.md
@@ -0,0 +1 @@
+Removed the unused `GET /research/api/config` endpoint. Every field it returned (`version`, `llm_provider`, `search_tool`, `features.notifications`) was read from `current_app.config` keys that are never set, so it only ever returned hardcoded placeholder values. It had no frontend or production callers. Use `GET /research/api/settings/current-config` for live configuration instead.
diff --git a/src/local_deep_research/web/routes/api_routes.py b/src/local_deep_research/web/routes/api_routes.py
index 914254f844..04a23ebcad 100644
--- a/src/local_deep_research/web/routes/api_routes.py
+++ b/src/local_deep_research/web/routes/api_routes.py
@@ -623,29 +623,3 @@ def check_ollama_model():
"error_details": "An internal error occurred.",
}
)
-
-
-# Helper route to get system configuration
-@api_bp.route("/config", methods=["GET"])
-@login_required
-def api_get_config():
- """
- Get public system configuration
- """
- # Only return public configuration
- public_config = {
- "version": current_app.config.get("VERSION", "0.1.0"),
- "llm_provider": current_app.config.get("LLM_CONFIG", {}).get(
- "provider", "ollama"
- ),
- "search_tool": current_app.config.get("SEARCH_CONFIG", {}).get(
- "search_tool", "searxng"
- ),
- "features": {
- "notifications": current_app.config.get(
- "ENABLE_NOTIFICATIONS", False
- )
- },
- }
-
- return jsonify(public_config)
diff --git a/tests/api_tests/test_all_endpoints.py b/tests/api_tests/test_all_endpoints.py
index 2feecb5303..a54f2649a7 100644
--- a/tests/api_tests/test_all_endpoints.py
+++ b/tests/api_tests/test_all_endpoints.py
@@ -199,11 +199,6 @@ class TestAllEndpoints:
f"Current config failed: {response.data}"
)
- response = authenticated_client.get("/research/api/config")
- assert response.status_code == 200, (
- f"Public config failed: {response.data}"
- )
-
# Test Ollama checks
response = authenticated_client.get("/research/api/check/ollama_status")
assert response.status_code == 200, (
diff --git a/tests/api_tests/test_comprehensive_apis.py b/tests/api_tests/test_comprehensive_apis.py
index 04acddcd28..8615caca29 100644
--- a/tests/api_tests/test_comprehensive_apis.py
+++ b/tests/api_tests/test_comprehensive_apis.py
@@ -255,14 +255,6 @@ class TestComprehensiveAPIs:
config = data["config"]
assert "provider" in config or "llm" in config
- # Get public config (correct path is /research/api/config)
- response = authenticated_client.get("/research/api/config")
- assert response.status_code == 200
- data = json.loads(response.data)
- assert "version" in data
- # The endpoint returns basic config, not available_models
- assert "llm_provider" in data or "search_tool" in data
-
logger.info("✅ Config APIs tested")
def test_health_check_apis(self, authenticated_client):