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

[Feature]: supports_prompt_caching property for LMs #5776

Closed
neubig opened this issue Sep 18, 2024 · 0 comments · Fixed by #5819
Closed

[Feature]: supports_prompt_caching property for LMs #5776

neubig opened this issue Sep 18, 2024 · 0 comments · Fixed by #5819
Assignees
Labels
enhancement New feature or request

Comments

@neubig
Copy link
Contributor

neubig commented Sep 18, 2024

The Feature

Currently, claude and gemini support prompt caching, but other LMs don't. It'd be great if there could be a supports_prompt_caching property (like supports_vision etc.) that tells us which models support prompt caching.

Motivation, pitch

In OpenHands we would like to turn prompt caching on by default, but we can't easily do so without this feature, because if we attempt to use prompt caching with an LM that doesn't support it then it throws an error.

We tried to fix this by checking for claude in the model name, but that doesn't work because claude on GCP apparently doesn't support prompt caching yet.

Twitter / LinkedIn details

No response

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

Successfully merging a pull request may close this issue.

2 participants