Replies: 1 comment
-
Hi @riywo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Anthropic API requires to specify the explicit parameter called
cache_control
to enable prompt caching for specific messages: https://docs.anthropic.com/en/docs/build-with-claude/prompt-cachingI'm wondering how to do this with Agno framework.
This also implies that this method needs to updated to calculate the token metrics properly. (I guess putting both
cache_*_input_tokens
toprompt_tokens_details
would be enough.)agno/libs/agno/agno/models/base.py
Line 1051 in 0ef0d09
Beta Was this translation helpful? Give feedback.
All reactions