Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python agentsai-hackingai-penetration-testingai-pentestingai-securityartificial-intelligencebug-bountycode-qualityctf-toolscybersecuritycybersecurity-toolsethical-hackinghackingllm-securityoffensive-securitypenetration-testingpentesting-toolsred-teamingsecuritysecurity-automation
refactor: remove unused LLMRequestQueue constructor params
0xallam7dab26cdd509
diff --git a/strix/llm/request_queue.py b/strix/llm/request_queue.pyindex de249e2f..35c97258 100644--- a/strix/llm/request_queue.py+++ b/strix/llm/request_queue.py@@ -11,13 +11,10 @@ from strix.config import Configclass LLMRequestQueue:- def __init__(self, max_concurrent: int = 1, delay_between_requests: float = 4.0):- delay_between_requests = float(Config.get("llm_rate_limit_delay") or "4.0")- max_concurrent = int(Config.get("llm_rate_limit_concurrent") or "1")-- self.max_concurrent = max_concurrent- self.delay_between_requests = delay_between_requests- self._semaphore = threading.BoundedSemaphore(max_concurrent)+ def __init__(self) -> None:+ self.delay_between_requests = float(Config.get("llm_rate_limit_delay") or "4.0")+ self.max_concurrent = int(Config.get("llm_rate_limit_concurrent") or "1")+ self._semaphore = threading.BoundedSemaphore(self.max_concurrent)self._last_request_time = 0.0self._lock = threading.Lock()