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 o1[-mini] support (#789)
Kilian Lieret5cee33f38e76
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex 385fba65..3a3d4636 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -236,6 +236,16 @@ class OpenAIModel(BaseModel):"cost_per_input_token": 1.5e-07,"cost_per_output_token": 6e-07,},+ "o1-preview-2024-09-12": {+ "max_context": 128_000,+ "cost_per_input_token": 15e-06,+ "cost_per_output_token": 60e-06,+ },+ "o1-mini-2024-09-12": {+ "max_context": 128_000,+ "cost_per_input_token": 3e-6,+ "cost_per_output_token": 12e-6,+ },}SHORTCUTS = {@@ -248,6 +258,9 @@ class OpenAIModel(BaseModel):"gpt4-turbo": "gpt-4-turbo-2024-04-09","gpt4o": "gpt-4o-2024-05-13","gpt-4o-mini": "gpt-4o-mini-2024-07-18",+ "gpt4omini": "gpt-4o-mini-2024-07-18",+ "o1": "o1-preview-2024-09-12",+ "o1-mini": "o1-mini-2024-09-12",}def __init__(self, args: ModelArguments, commands: list[Command]):