Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Change(models): Bump up default retry numbers

Kilian Lieret2e77445c30cc
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.py
index a1f2ca97..ca785dbb 100644
--- a/sweagent/agent/models.py
+++ b/sweagent/agent/models.py
@@ -53,7 +53,7 @@ _THREADS_THAT_USED_API_KEYS = []
class RetryConfig(PydanticBaseModel):
"""This configuration object specifies how many times to retry a failed LM API call."""
- retries: int = 10
+ retries: int = 20
"""Number of retries"""
min_wait: float = 10
"""Minimum wait time between retries (random exponential wait)"""