Skip to content

Conversation

@comhar
Copy link
Contributor

@comhar comhar commented Nov 13, 2025

fixes #5

This pr updates _key so that the full url is included in the cache key. Up until now only the host was included.

This change was needed because LiteLLM includes the model name in a query param when calling Gemini. Running the same prompt on two different Gemini models would generate the same cache key making it difficult to compare Gemini models. This PR resolves that issue.

Note: This is a breaking change. If your project relies on cachy, probably best to delete your cachy.jsonl, run your notebooks and commit the new cachy.jsonl.

@comhar comhar added the enhancement New feature or request label Nov 13, 2025
@comhar comhar marked this pull request as draft November 13, 2025 16:23
@comhar comhar force-pushed the feat/5-use-full-url-in-cache-key branch from 84caf34 to f449b75 Compare December 2, 2025 12:50
@comhar comhar assigned comhar and unassigned comhar Dec 2, 2025
@comhar comhar marked this pull request as ready for review December 2, 2025 12:52
@comhar comhar self-assigned this Dec 2, 2025
@comhar comhar merged commit bdbd24d into main Dec 2, 2025
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 this pull request may close these issues.

Use full url without key param in cache key

2 participants