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
I implemented prompt caching in my fork based on Anthropic's recent updates and saw significant cost reductions from $30-50/day to $1-5/day in API usage.
Add Prompt Caching Support to Reduce API Costs
Overview
I implemented prompt caching in my fork based on Anthropic's recent updates and saw significant cost reductions from $30-50/day to $1-5/day in API usage.
Implementation Details
The key changes are based on this upstream commit:
anthropics/anthropic-quickstarts@be847c4
The main implementation can be found here:
https://github.com/anthropics/anthropic-quickstarts/blob/main/computer-use-demo/computer_use_demo/loop.py#L116
Benefits
Technical Changes Required
anthropic-beta: prompt-caching-2024-07-31
headercache_control
Example Implementation
Notes
References
The text was updated successfully, but these errors were encountered: