~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: ensure rate limiting is properly disabled in CI
LearningCircuit19f9f67d2d98
diff --git a/src/local_deep_research/settings/env_registry.py b/src/local_deep_research/settings/env_registry.pyindex 9e2b82369a..7cadfbffff 100644--- a/src/local_deep_research/settings/env_registry.py+++ b/src/local_deep_research/settings/env_registry.py@@ -84,11 +84,27 @@ def is_rate_limiting_enabled() -> bool:- If not in CI, enable"""import os+ from loguru import loggerenable_flag = os.environ.get("ENABLE_RATE_LIMITING", "").lower()+ ci_env = os.environ.get("CI", "false").lower()++ # Debug logging to understand what's happening+ logger.debug(+ f"Rate limiting check: CI={ci_env}, ENABLE_RATE_LIMITING={enable_flag}"+ )+if enable_flag == "true":+ logger.debug("Rate limiting ENABLED due to ENABLE_RATE_LIMITING=true")return True- return not is_ci_environment()++ is_ci = ci_env in ("true", "1", "yes")+ if is_ci:+ logger.debug("Rate limiting DISABLED due to CI environment")+ return False++ logger.debug("Rate limiting ENABLED (not in CI)")+ return True# Export the registry and convenience functionsdiff --git a/src/local_deep_research/web/app_factory.py b/src/local_deep_research/web/app_factory.pyindex a7a129f1a7..4a752fa7b2 100644--- a/src/local_deep_research/web/app_factory.py+++ b/src/local_deep_research/web/app_factory.py@@ -119,6 +119,10 @@ def create_app():# Initialize rate limiting for security (brute force protection)# Uses imported limiter from utils.rate_limiter module# Rate limiting is disabled in CI via enabled callable in rate_limiter.py+ # Also set app config to ensure Flask-Limiter respects our settings+ from ..settings.env_registry import is_rate_limiting_enabled++ app.config["RATELIMIT_ENABLED"] = is_rate_limiting_enabled()limiter.init_app(app)# Custom error handler for rate limit exceeded (429)