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

[Bug]: Litellm proxy doesn't support caching unless used with litellm_proxy prefix #6630

Open
1 task done
enyst opened this issue Feb 5, 2025 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@enyst
Copy link
Collaborator

enyst commented Feb 5, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

Reported on slack : the .jsonl after a swe-bench run reports 0.

Anthropic claude-sonnet-3-5-20241022 via litellm_proxy.

OpenHands Installation

Other

OpenHands Version

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

@enyst enyst added the bug Something isn't working label Feb 5, 2025
@mamoodi
Copy link
Collaborator

mamoodi commented Feb 6, 2025

Does that mean prompt caching is broken right now? Or is this only relevant to evaluation?

@enyst
Copy link
Collaborator Author

enyst commented Feb 6, 2025

Relevant: conclusion on slack

It seems that when using a litellm proxy, the user needs to call the model with the prefix litellm_proxy, otherwise it won't apply caching. I find it strange (we did set the cache markers, it must be that the proxy is removing them for some calls?), but it doesn't affect everyone, only proxy users.

@enyst enyst changed the title [Bug]: Cached tokens is 0 when prompt caching was enabled [Bug]: Litellm proxy doesn't support caching unless used with litellm_proxy prefix Feb 7, 2025
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

2 participants