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

[FR] Improve cost calculation with prompt caching #215

Open
svilupp opened this issue Oct 2, 2024 · 0 comments
Open

[FR] Improve cost calculation with prompt caching #215

svilupp opened this issue Oct 2, 2024 · 0 comments

Comments

@svilupp
Copy link
Owner

svilupp commented Oct 2, 2024

OpenAI and Anthropic offer prompt caching.

Current cost calculation ignores that and serves as an upper bound estimate.

Source: https://openai.com/index/api-prompt-caching/ -- discount 50% for some models

Requires adding a field for cached inputs cost in all registered models

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

No branches or pull requests

1 participant