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 - fixing error message for azure --model issue (#597)
Ofir Press61ca1be98a63
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex e2b82397..ef5ba9bd 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -247,7 +247,8 @@ class OpenAIModel(BaseModel):if "model" in self.args and self.args.model:logger.warning("The --model CLI argument is ignored when using the Azure GPT endpoint. "- "The model is determined by AzureOpenAI.",+ "The model is determined by the AZURE_OPENAI_DEPLOYMENT key/"+ "environment variable (this might change in the future).",)self.api_model = keys_config["AZURE_OPENAI_DEPLOYMENT"]self.client = AzureOpenAI(