mirror of
https://github.com/Shiva108/ai-llm-red-team-handbook.git
synced 2026-08-24 20:02:56 +02:00
feat: Hardcode LLM client timeout to 60 seconds to accommodate slow LLMs.
This commit is contained in:
@@ -174,7 +174,7 @@ class DiscoveryPhase(Phase):
|
||||
api_type="openai",
|
||||
model=context.config.target.model or "",
|
||||
auth_token=context.config.target.token or "",
|
||||
timeout=context.config.target.timeout,
|
||||
timeout=60, # Use 60s timeout for slow LLMs
|
||||
rate_limit=context.config.attack.rate_limit,
|
||||
)
|
||||
|
||||
@@ -461,7 +461,7 @@ class AttackPhase(Phase):
|
||||
api_type="openai",
|
||||
model=context.config.target.model or "",
|
||||
auth_token=context.config.target.token or "",
|
||||
timeout=context.config.target.timeout,
|
||||
timeout=60, # Use 60s timeout for slow LLMs
|
||||
rate_limit=context.config.attack.rate_limit,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user