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]

exit lm retry on keyboard interrupt

carlosejimenez2be7477688fe
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.py
index ea159fb7..00e6c718 100644
--- a/sweagent/agent/models.py
+++ b/sweagent/agent/models.py
@@ -775,6 +775,7 @@ class LiteLLMModel(AbstractModel):
litellm.exceptions.AuthenticationError,
ContentPolicyViolationError,
ModelConfigurationError,
+ KeyboardInterrupt,
)
),
before_sleep=retry_warning,