You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I want to add LLM caching, so that I do not call api twice on the same payload. I have tried to implement it using callback context, but it looks kind of ugly and has a lot of pitfalls. Then I saw this feature already implemented in LiteLLM lib: https://docs.litellm.ai/docs/caching/all_caches. But LiteLLM class from from google.adk.models.lite_llm does not seem to support it. Is there are good way now or in the future to add query caching? At least my reddis connection does not work with google-adk, but somehow disk is working. But disk is not enough. I also tried to add custom caching, using
You could keep compatibility with all LiteLLM features by just reusing their class. What was the reason why you chose to build your own LightLLM class?
Activity
hangfei commentedon Apr 29, 2025
What API and where you want to cache?
NikolayTV commentedon May 3, 2025
I mean this llm query caching https://docs.litellm.ai/docs/caching/local_caching
You could keep compatibility with all LiteLLM features by just reusing their class. What was the reason why you chose to build your own LightLLM class?
ptone commentedon May 17, 2025
This feels like a duplicated of #211