How do I use the Anthropic cache?
Anthropic cache allows you to cache parts of a prompt. As explained in their documentation, you need to opt-in within the prompt to start caching parts of it. To do this, addcacheControl: true
to the front matter of your prompt.
user
, assistant
, or system
tags: