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

OpenRouter Claude 3.7: Prompt caching via OpenRouter does not appear to work. #1185

Open
cfdude opened this issue Feb 25, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@cfdude
Copy link

cfdude commented Feb 25, 2025

Which version of the app are you using?

3.7.4

Which API Provider are you using?

OpenRouter

Which Model are you using?

Claude Sonnet 3.7

What happened?

Image

Image

Reported from user on Discord: https://discord.com/channels/1332146336664915968/1343919743022661643

When choosing OpenRouter, both the :beta and the regular version of Claude Sonnet do not show prompt caching in the UI. In addition, the cost of the prompts do seem high enough that prompt caching doesn't seem likely to be happening.

This happens in both Claude 3.5 and Claude 3.7. To my recollection, this has always happened - I just didn't realize until now this is potentially undesirable behavior. I just saw that openrouter supports caching so raising this in hindsight.

Steps to reproduce

Relevant API REQUEST output

Additional context

The user did report that prompt caching is working in Cline, so perhaps we need to pull that work that has already been done?

@cfdude cfdude added the bug Something isn't working label Feb 25, 2025
@cfdude
Copy link
Author

cfdude commented Feb 25, 2025

The user that reported this is also wondering if we can make it possible to support prompt caching with Gemini since 2.0 Pro is coming out soon. Is that a possibility for us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant