Skip to content

Commit ca14742

Browse files
authored
Merge pull request #6152 from continuedev/bdougie/anthropic-prompt-true
docs: Update anthropic promptCaching syntax
2 parents a0aaba8 + b8ddab7 commit ca14742

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We recommend configuring **Claude 4 Sonnet** as your chat model.
3131
{
3232
"title": "Claude 4 Sonnet",
3333
"provider": "anthropic",
34-
"model": "claude-sonnet-4-20250514",
34+
"model": "claude-sonnet-4-latest",
3535
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
3636
}
3737
]
@@ -68,9 +68,6 @@ Prompt caching is generally available for:
6868
- Claude 3.7 Sonnet
6969
- Claude 3.5 Sonnet
7070
- Claude 3.5 Haiku
71-
- Claude 3 Opus
72-
- Claude 3 Sonnet
73-
- Claude 3 Haiku
7471

7572
To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows:
7673

@@ -84,9 +81,8 @@ To enable caching of the system message and the turn-by-turn conversation, updat
8481
apiKey: <YOUR_ANTHROPIC_API_KEY>
8582
roles:
8683
- chat
87-
cacheBehavior:
88-
cacheSystemMessage: true
89-
cacheConversation: true
84+
defaultCompletionOptions:
85+
promptCaching: true
9086
```
9187
</TabItem>
9288
<TabItem value="json" label="JSON">
@@ -100,7 +96,10 @@ To enable caching of the system message and the turn-by-turn conversation, updat
10096
},
10197
"title": "Anthropic",
10298
"provider": "anthropic",
103-
"model": "claude-sonnet-4-20250514",
99+
"model": "claude-sonnet-4-latest",
100+
"defaultCompletionOptions": {
101+
"promptCaching": true
102+
},
104103
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
105104
}
106105
]

0 commit comments

Comments
 (0)