Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

refactor: remove unused LLMRequestQueue constructor params

0xallam7dab26cdd509
diff --git a/strix/llm/request_queue.py b/strix/llm/request_queue.py
index de249e2f..35c97258 100644
--- a/strix/llm/request_queue.py
+++ b/strix/llm/request_queue.py
@@ -11,13 +11,10 @@ from strix.config import Config
class 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.0
self._lock = threading.Lock()