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: Debugging model 404s (#522)

Kilian Lieret7e394cdb6e15
diff --git a/docs/installation/keys.md b/docs/installation/keys.md
index 1d793628..0307b3ff 100644
--- a/docs/installation/keys.md
+++ b/docs/installation/keys.md
@@ -22,4 +22,7 @@ The following `keys.cfg` example shows you how the keys are named:
# OPENAI_API_BASE_URL: 'LM base URL here if using Local or alternative api Endpoint'
```
-See the following links for tutorials on obtaining [Anthropic](https://docs.anthropic.com/claude/reference/getting-started-with-the-api), [OpenAI](https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key), and [Github](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) tokens.
\ No newline at end of file
+See the following links for tutorials on obtaining [Anthropic](https://docs.anthropic.com/claude/reference/getting-started-with-the-api), [OpenAI](https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key), and [Github](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) tokens.
+
+!!! tip "Models"
+ Some more information about the available models in our [usage FAQ](../usage/usage_faq.md).
diff --git a/docs/usage/usage_faq.md b/docs/usage/usage_faq.md
index 6e059fe7..475649a3 100644
--- a/docs/usage/usage_faq.md
+++ b/docs/usage/usage_faq.md
@@ -38,4 +38,12 @@ We also provide models for testing SWE-agent without spending any credits
* `ReplayModel` takes a trajectory as input and "replays it"
* `InstantEmptySubmitTestModel` will create an empty `reproduce.py` and then submit
+### Debugging
+
+* If you get `Error code: 404`, please check your configured keys, in particular
+ whether you set `OPENAI_API_BASE_URL` correctly (if you're not using it, the
+ line should be deleted or commented out).
+ Also see [this issue](https://github.com/princeton-nlp/SWE-agent/issues/467)
+ for reference.
+
{% include-markdown "../_footer.md" %}