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]
Fix(retry): Accessing model ID
Kilian Lieret223428b4412e
diff --git a/sweagent/run/run_batch.py b/sweagent/run/run_batch.pyindex e59e97f9..e88d0405 100644--- a/sweagent/run/run_batch.py+++ b/sweagent/run/run_batch.py@@ -100,7 +100,10 @@ class RunBatchConfig(BaseSettings, cli_implicit_flags=False):if self.output_dir == Path("DEFAULT"):user_id = getpass.getuser()source_id = self.instances.id- model_id = self.agent.model.id+ try:+ model_id = self.agent.model.id # type: ignore[attr-defined]+ except AttributeError:+ model_id = "unknown"config_file = getattr(self, "_config_files", ["no_config"])[0]if config_file != "no_config":config_file = Path(config_file).stem