Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt caching with claude from Anthropic #25

Open
MBrekhof opened this issue Sep 17, 2024 · 3 comments
Open

Prompt caching with claude from Anthropic #25

MBrekhof opened this issue Sep 17, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@MBrekhof
Copy link

Will you be adding prompt caching for anthropic (https://www.anthropic.com/news/prompt-caching)?

@lofcz
Copy link
Owner

lofcz commented Sep 17, 2024

Prompt caching will be added soon.

@lofcz lofcz self-assigned this Sep 18, 2024
@lofcz lofcz added the enhancement New feature or request label Sep 18, 2024
@lofcz
Copy link
Owner

lofcz commented Sep 18, 2024

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.

@schaveyt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants