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

Support prompt caching #2689

Closed
kdawgwilk opened this issue Aug 16, 2024 · 3 comments
Closed

Support prompt caching #2689

kdawgwilk opened this issue Aug 16, 2024 · 3 comments
Labels
ai/provider enhancement New feature or request

Comments

@kdawgwilk
Copy link

Feature Description

Add support for setting cache_control on CoreMessage to support new Anthropic feature https://www.anthropic.com/news/prompt-caching

Use Case

Cost savings when reusing prompt context

Additional context

No response

@lgrammel lgrammel added enhancement New feature or request ai/provider labels Aug 16, 2024
@lgrammel
Copy link
Collaborator

Cache control needs to be on message parts. Prototype is available here but requires large changes: #2678

@lgrammel
Copy link
Collaborator

#2697

@lgrammel
Copy link
Collaborator

landed in main

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

Successfully merging a pull request may close this issue.

2 participants