Elffuss BraidHub

kikocis/continue public

Merge pull request #6152 from continuedev/bdougie/anthropic-prompt-true

docs: Update anthropic promptCaching syntax
Changeset66e4dd9ea0d7d52979e6abe20be5b8f3254f4bc97dafa991b58f21f969b25cb5
AuthorBrian Douglas <bdougie@users.noreply.github.com> · 2025-06-18 14:10 -07:00
CommitterGitHub <noreply@github.com> · 2025-06-18 14:10 -07:00
Parents05da9b90e09f, 92f20c61b109

Browse the files at this changeset

1 file changed

modified docs/docs/customize/model-providers/top-level/anthropic.mdx +7 −8
@@ -31,7 +31,7 @@
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 @@
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 @@
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 @@
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 ]