Skip to content

Closes #133 Support limited token caching #137

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

elnelson575
Copy link
Contributor

Supports token caching based on tidyverse/ellmer#632

Note: This is not entirely correct for Claude/OpenAI because they have a charge for both cache reads AND writes.
There is also complexity on the Anthropic side depending on if the cache is actually hit or not.
Based on the quick-moving changes in how providers handle caching, this should be treated as an estimate.

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

Successfully merging this pull request may close these issues.

1 participant