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]

Fix: Choosing TogetherAI models (#130)

Kilian Lieret7b5ab3df2271
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.py
index 283ca8fe..4a1f2aa8 100644
--- a/sweagent/agent/models.py
+++ b/sweagent/agent/models.py
@@ -708,5 +708,7 @@ def get_model(args: ModelArguments, commands: Optional[list[Command]] = None):
return AnthropicModel(args, commands)
elif args.model_name.startswith("ollama"):
return OllamaModel(args, commands)
+ elif args.model_name in TogetherModel.SHORTCUTS:
+ return TogetherModel(args, commands)
else:
raise ValueError(f"Invalid model name: {args.model_name}")