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]

Doc: Add note about where to set API keys

Kilian Lieret792b8fa282f1
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.py
index 48ab3a6f..0c767a88 100644
--- a/sweagent/agent/models.py
+++ b/sweagent/agent/models.py
@@ -51,6 +51,9 @@ class GenericAPIModelConfig(PydanticBaseModel):
api_base: str | None = None
api_version: str | None = None
api_key: SecretStr | None = None
+ """API key to the model. We recommend using environment variables to set this instead
+ or putting your environment variables in a `.env` file.
+ """
stop: list[str] = []
completion_kwargs: dict[str, Any] = {}