You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a 2K+ token system prompt, if I use it directly with claude-3-5-sonnet-20241022, I can see the cache writes in my Anthopic console. If instead I use a very similar (but not identical) prompt in an agent using the same model, I don't see the cache writes. Is it possible that the prompt caching settings aren't making it through? (I tried to poke around in the code, but I don't actually see the code for the agent stuff in the source tree -- looks like you're keeping that private?)
Steps to Reproduce
Check the Anthropic console usage view, and note the current number of cache writes
Choose Anthropic / claude-3-5-sonnet-20241022
In the right-hand panel, paste in a long set of custom instructions
Send a message and check for new cache writes.
Try again with an agent:
0. Note the current cache writes in anthropic console.
Choose Agent and then, using the agent builder, choose the same model, and confirm that prompt caching is enabled
Paste in the same custom instructions from step 2, but alter the first line.
Send a message and check for new cache writes.
When I do this, I see new writes in the first case, but not the second.
What browsers are you seeing the problem on?
Safari
Relevant log output
No response
Screenshots
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
Using a 2K+ token system prompt, if I use it directly with
claude-3-5-sonnet-20241022
, I can see the cache writes in my Anthopic console. If instead I use a very similar (but not identical) prompt in an agent using the same model, I don't see the cache writes. Is it possible that the prompt caching settings aren't making it through? (I tried to poke around in the code, but I don't actually see the code for the agent stuff in the source tree -- looks like you're keeping that private?)Steps to Reproduce
Try again with an agent:
0. Note the current cache writes in anthropic console.
When I do this, I see new writes in the first case, but not the second.
What browsers are you seeing the problem on?
Safari
Relevant log output
No response
Screenshots
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: