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 some security issues.

Daniel Petti770185e34855
diff --git a/src/local_deep_research/web/routes/api_routes.py b/src/local_deep_research/web/routes/api_routes.py
index 09f6539330..1ca3ed8119 100644
--- a/src/local_deep_research/web/routes/api_routes.py
+++ b/src/local_deep_research/web/routes/api_routes.py
@@ -87,9 +87,11 @@ def api_start_research():
"research_id": research_id,
}
)
- except Exception as e:
- logger.error(f"Error starting research: {str(e)}")
- return jsonify({"status": "error", "message": str(e)}), 500
+ except Exception:
+ logger.exception("Error starting research")
+ return jsonify(
+ {"status": "error", "message": "Failed to start research"}, 500
+ )
@api_bp.route("/status/<int:research_id>", methods=["GET"])
@@ -150,8 +152,12 @@ def api_terminate_research(research_id):
"result": result,
}
)
- except Exception as e:
- return jsonify({"status": "error", "message": str(e)}), 500
+ except Exception:
+ logger.exception("Error terminating research")
+ return (
+ jsonify({"status": "error", "message": "Failed to stop research."}),
+ 500,
+ )
@api_bp.route("/resources/<int:research_id>", methods=["GET"])
@@ -162,8 +168,11 @@ def api_get_resources(research_id):
try:
resources = get_resources_for_research(research_id)
return jsonify({"status": "success", "resources": resources})
- except Exception as e:
- return jsonify({"status": "error", "message": str(e)}), 500
+ except Exception:
+ logger.exception("Error getting resources for research")
+ return jsonify(
+ {"status": "error", "message": "Failed to get resources"}, 500
+ )
@api_bp.route("/resources/<int:research_id>", methods=["POST"])
diff --git a/src/local_deep_research/web/routes/metrics_routes.py b/src/local_deep_research/web/routes/metrics_routes.py
index 18a00c5045..397c5fb10e 100644
--- a/src/local_deep_research/web/routes/metrics_routes.py
+++ b/src/local_deep_research/web/routes/metrics_routes.py
@@ -859,9 +859,9 @@ def api_pricing():
}
)
- except Exception as e:
- logger.error(f"Error getting pricing data: {e}")
- return jsonify({"error": str(e)}), 500
+ except Exception:
+ logger.exception("Error fetching pricing data")
+ return jsonify({"error": "Internal Server Error"}), 500
@metrics_bp.route("/api/pricing/<model_name>")