Update documentation showing cacheBehavior object
This commit is contained in:
parent
f0c76ed0e7
commit
419cdd7e65
1 changed files with 5 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue