You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/customize/model-providers/top-level/anthropic.mdx
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,15 @@ You can get an API key from the [Anthropic console](https://console.anthropic.co
12
12
13
13
## Chat model
14
14
15
-
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
15
+
We recommend configuring **Claude 4 Sonnet** as your chat model.
16
16
17
17
<TabsgroupId="config-example">
18
18
<TabItemvalue="yaml"label="YAML">
19
19
```yaml title="config.yaml"
20
20
models:
21
-
- name: Claude 3.5 Sonnet
21
+
- name: Claude 4 Sonnet
22
22
provider: anthropic
23
-
model: claude-3-5-sonnet-latest
23
+
model: claude-sonnet-4-20250514
24
24
apiKey: <YOUR_ANTHROPIC_API_KEY>
25
25
```
26
26
</TabItem>
@@ -29,9 +29,9 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model.
29
29
{
30
30
"models": [
31
31
{
32
-
"title": "Claude 3.5 Sonnet",
32
+
"title": "Claude 4 Sonnet",
33
33
"provider": "anthropic",
34
-
"model": "claude-3-5-sonnet-latest",
34
+
"model": "claude-sonnet-4-20250514",
35
35
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
36
36
}
37
37
]
@@ -60,17 +60,27 @@ Anthropic currently does not offer any reranking models.
60
60
61
61
## Prompt caching
62
62
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.
64
64
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:
66
76
67
77
<TabsgroupId="config-example">
68
78
<TabItemvalue="yaml"label="YAML">
69
79
```yaml title="config.yaml"
70
80
models:
71
81
- name: Anthropic
72
82
provider: anthropic
73
-
model: claude-3-5-sonnet-latest
83
+
model: claude-sonnet-4-20250514
74
84
apiKey: <YOUR_ANTHROPIC_API_KEY>
75
85
roles:
76
86
- chat
@@ -90,7 +100,7 @@ To enable caching of the system message and the turn-by-turn conversation, updat
0 commit comments