Open MBrekhof opened 1 month ago
Prompt caching will be added soon.
Upon further investigation, I might implement this only after the function moves to GA. The current API for caching is prone to breaking and I'd like to avoid any unnecessary breaking changes on my side.
In case a you need a reference for implementation. This is the source code to the amazing AI-Assitant VSCode Extension written in Typescript. He's been using the prompt caching for a while now https://github.dev/schaveyt/cline/blob/4658e5ceadffc1361bb9604e656b2880f083cb3b/src/api/providers/anthropic.ts#L34-L35
Will you be adding prompt caching for anthropic (https://www.anthropic.com/news/prompt-caching)?