Update anthropicllm.md

This commit is contained in:
Test 2024-08-24 10:59:14 -07:00
parent 24f9960e27
commit 40491e5ba6

View file

@ -16,3 +16,24 @@ To setup Anthropic, obtain an API key from [here](https://www.anthropic.com/api)
```
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Anthropic.ts)
## Prompt caching
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching).
Currently, we only allow caching of the system message. To enable this feature, update your your model configuration with `"cacheSystemMessage": true`:
```json
{
"models": [
{
// Enable prompt caching
"cacheSystemMessage": true,
"title": "Anthropic",
"provider": "anthropic",
"model": "claude-3-5-sonnet-20240620",
"apiKey": "YOUR_API_KEY"
}
]
}
```