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.

style: Fix ruff formatting in research_routes.py

LearningCircuit89a754ee2410
diff --git a/src/local_deep_research/web/routes/research_routes.py b/src/local_deep_research/web/routes/research_routes.py
index 9f7d1ee2b7..cd1a18815b 100644
--- a/src/local_deep_research/web/routes/research_routes.py
+++ b/src/local_deep_research/web/routes/research_routes.py
@@ -1519,9 +1519,11 @@ def upload_pdf():
# This prevents memory exhaustion from chunked encoding attacks
max_request_size = 100 * 10 * 1024 * 1024 # 1GB (100 files * 10MB)
if request.content_length and request.content_length > max_request_size:
- return jsonify({
- "error": f"Request too large. Maximum size is {max_request_size // (1024*1024)}MB"
- }), 413
+ return jsonify(
+ {
+ "error": f"Request too large. Maximum size is {max_request_size // (1024 * 1024)}MB"
+ }
+ ), 413
# Check if files are present in the request
if "files" not in request.files: