Skip to content

Commit 4f58aa8

Browse files
authored
Update docs/models/anthropic.md
1 parent bbf5626 commit 4f58aa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/models/anthropic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ Anthropic supports [prompt caching](https://docs.anthropic.com/en/docs/build-wit
8787
3. **Cache Tool Definitions**: Set [`AnthropicModelSettings.anthropic_cache_tool_definitions`][pydantic_ai.models.anthropic.AnthropicModelSettings.anthropic_cache_tool_definitions] to `True` (uses 5m TTL by default) or specify `'5m'` / `'1h'` directly
8888
4. **Cache All Messages**: Set [`AnthropicModelSettings.anthropic_cache_messages`][pydantic_ai.models.anthropic.AnthropicModelSettings.anthropic_cache_messages] to `True` to automatically cache all messages
8989

90-
### Example 1: Automatic Last Message Caching
90+
### Example 1: Automatic Message Caching
9191

92-
Use `anthropic_cache_messages` to automatically cache the last user message:
92+
Use `anthropic_cache_messages` to automatically cache all messages up to and including the newest user message:
9393

9494
```python {test="skip"}
9595
from pydantic_ai import Agent

0 commit comments

Comments
 (0)