Skip to content

Commit eb089af

Browse files
authored
Merge pull request #6145 from continuedev/bdougie/prompt-caching-docs
docs: update with sonnet 4
2 parents 17e450f + 08fcdcc commit eb089af

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

docs/docs/customize/model-providers/top-level/anthropic.mdx

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ You can get an API key from the [Anthropic console](https://console.anthropic.co
1212

1313
## Chat model
1414

15-
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
15+
We recommend configuring **Claude 4 Sonnet** as your chat model.
1616

1717
<Tabs groupId="config-example">
1818
<TabItem value="yaml" label="YAML">
1919
```yaml title="config.yaml"
2020
models:
21-
- name: Claude 3.5 Sonnet
21+
- name: Claude 4 Sonnet
2222
provider: anthropic
23-
model: claude-3-5-sonnet-latest
23+
model: claude-sonnet-4-20250514
2424
apiKey: <YOUR_ANTHROPIC_API_KEY>
2525
```
2626
</TabItem>
@@ -29,9 +29,9 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model.
2929
{
3030
"models": [
3131
{
32-
"title": "Claude 3.5 Sonnet",
32+
"title": "Claude 4 Sonnet",
3333
"provider": "anthropic",
34-
"model": "claude-3-5-sonnet-latest",
34+
"model": "claude-sonnet-4-20250514",
3535
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
3636
}
3737
]
@@ -60,17 +60,27 @@ Anthropic currently does not offer any reranking models.
6060

6161
## Prompt caching
6262

63-
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching).
63+
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching), which allows Claude models to cache system messages and conversation history between requests to improve performance and reduce costs.
6464

65-
To enable caching of the system message and the turn-by-turn conversation, update your your model configuration as following:
65+
Prompt caching is generally available for:
66+
67+
- Claude 4 Sonnet
68+
- Claude 3.7 Sonnet
69+
- Claude 3.5 Sonnet
70+
- Claude 3.5 Haiku
71+
- Claude 3 Opus
72+
- Claude 3 Sonnet
73+
- Claude 3 Haiku
74+
75+
To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows:
6676

6777
<Tabs groupId="config-example">
6878
<TabItem value="yaml" label="YAML">
6979
```yaml title="config.yaml"
7080
models:
7181
- name: Anthropic
7282
provider: anthropic
73-
model: claude-3-5-sonnet-latest
83+
model: claude-sonnet-4-20250514
7484
apiKey: <YOUR_ANTHROPIC_API_KEY>
7585
roles:
7686
- chat
@@ -90,7 +100,7 @@ To enable caching of the system message and the turn-by-turn conversation, updat
90100
},
91101
"title": "Anthropic",
92102
"provider": "anthropic",
93-
"model": "claude-3-5-sonnet-latest",
103+
"model": "claude-sonnet-4-20250514",
94104
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
95105
}
96106
]

0 commit comments

Comments
 (0)