Changesets · Branches · Tags · Compare
| Changeset | cf53120a11481f281cf8d0497b5da0777a78d2a2dcb9f2b0aaddd0a2f17f9e5e |
|---|---|
| Author | Brian Douglas <bdougie@users.noreply.github.com> · 2025-06-16 14:51 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-06-16 14:51 -07:00 |
| Parents | c3e8fbcfb752 |
1 file changed
modified docs/docs/customize/model-providers/top-level/anthropic.mdx +7 −8
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | { |
| 32 | 32 | "title": "Claude 4 Sonnet", |
| 33 | 33 | "provider": "anthropic", |
| 34 | - "model": "claude-sonnet-4-20250514", | |
| 34 | + "model": "claude-sonnet-4-latest", | |
| 35 | 35 | "apiKey": "<YOUR_ANTHROPIC_API_KEY>" |
| 36 | 36 | } |
| 37 | 37 | ] |
| @@ -68,9 +68,6 @@ | ||
| 68 | 68 | - Claude 3.7 Sonnet |
| 69 | 69 | - Claude 3.5 Sonnet |
| 70 | 70 | - Claude 3.5 Haiku |
| 71 | -- Claude 3 Opus | |
| 72 | -- Claude 3 Sonnet | |
| 73 | -- Claude 3 Haiku | |
| 74 | 71 | |
| 75 | 72 | To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows: |
| 76 | 73 | |
| @@ -84,9 +81,8 @@ | ||
| 84 | 81 | apiKey: <YOUR_ANTHROPIC_API_KEY> |
| 85 | 82 | roles: |
| 86 | 83 | - chat |
| 87 | - cacheBehavior: | |
| 88 | - cacheSystemMessage: true | |
| 89 | - cacheConversation: true | |
| 84 | + defaultCompletionOptions: | |
| 85 | + promptCaching: true | |
| 90 | 86 | ``` |
| 91 | 87 | </TabItem> |
| 92 | 88 | <TabItem value="json" label="JSON"> |
| @@ -100,7 +96,10 @@ | ||
| 100 | 96 | }, |
| 101 | 97 | "title": "Anthropic", |
| 102 | 98 | "provider": "anthropic", |
| 103 | - "model": "claude-sonnet-4-20250514", | |
| 99 | + "model": "claude-sonnet-4-latest", | |
| 100 | + "defaultCompletionOptions": { | |
| 101 | + "promptCaching": true | |
| 102 | + }, | |
| 104 | 103 | "apiKey": "<YOUR_ANTHROPIC_API_KEY>" |
| 105 | 104 | } |
| 106 | 105 | ] |