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]
Add support for new gpt-4o-mini model (#693)
ivan47225ad898717a72
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex 07b843df..0c7228f3 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -225,6 +225,11 @@ class OpenAIModel(BaseModel):"cost_per_input_token": 5e-06,"cost_per_output_token": 15e-06,},+ "gpt-4o-mini-2024-07-18": {+ "max_context": 128_000,+ "cost_per_input_token": 5e-06,+ "cost_per_output_token": 15e-06,+ },}SHORTCUTS = {@@ -236,6 +241,7 @@ class OpenAIModel(BaseModel):"gpt3-0125": "gpt-3.5-turbo-0125","gpt4-turbo": "gpt-4-turbo-2024-04-09","gpt4o": "gpt-4o-2024-05-13",+ "gpt-4o-mini": "gpt-4o-mini-2024-07-18",}def __init__(self, args: ModelArguments, commands: list[Command]):