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 cache control for local models (#995)

Kilian Lieret80e520ed53ab
diff --git a/docs/installation/keys.md b/docs/installation/keys.md
index e7e78c04..f2f5e6f4 100644
--- a/docs/installation/keys.md
+++ b/docs/installation/keys.md
@@ -106,6 +106,15 @@ and set `agent.model.api_key` to the key you've configured for your proxy (or a
Remember to document the tools in your prompt as the model will not be able to see the function signature
like with function calling.
+!!! warning "Message types"
+
+ The `cache_control` history processor requires a different message format
+ (e.g., `{'role': 'user', 'content': [{'type': 'text', 'text': 'some text', 'cache_control': {'type': 'ephemeral'}}]}]`).
+ This might not be understood by all language models.
+ Therefore, please remove this history processor if you do not need it
+ (it's currently mostly used for anthropic cache control).
+ See [#957](https://github.com/SWE-agent/SWE-agent/issues/957) for more information.
+
## Something went wrong?
* If you get `Error code: 404`, please check your configured keys, in particular