Update documentation showing cacheBehavior object

This commit is contained in:
Tijs Zwinkels 2024-09-26 21:50:31 +02:00
parent f0c76ed0e7
commit 419cdd7e65
No known key found for this signature in database

View file

@ -48,16 +48,17 @@ Anthropic currently does not offer any reranking models.
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching).
To enable caching of the system message, update your your model configuration with `"cacheSystemMessage": true`:
To enable caching of the conversation, update your your model configuration with `"cacheConversation": true`:
To enable caching of the system message and the turn-by-turn conversation, update your your model configuration as following:
```json
{
"models": [
{
// Enable prompt caching
"cacheSystemMessage": true,
"cacheConversation": true,
"cacheBehavior": {
"cacheSystemMessage": true,
"cacheConversation": true
},
"title": "Anthropic",
"provider": "anthropic",
"model": "claude-3-5-sonnet-20240620",