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]
Update models.py (#1214)
Xiang Chen286a67f32d70
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex 598e6b86..86bc0351 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -450,7 +450,7 @@ class HumanThoughtModel(HumanModel):thought_all += thoughtthought = input("... ")- action = super()._query(history, action_prompt="Action: ")+ action = super()._query(history, action_prompt="Action: ")["message"]return {"message": f"{thought_all}\n```\n{action}\n```"}