diff --git a/litellm/proxy/caching_routes.py b/litellm/proxy/caching_routes.py index 4bc7a7c70d0..6935bff054b 100644 --- a/litellm/proxy/caching_routes.py +++ b/litellm/proxy/caching_routes.py @@ -39,7 +39,7 @@ def _extract_cache_params() -> Dict[str, Any]: if litellm.cache is None: return {} try: - cache_params = vars(litellm.cache.cache) + cache_params = dict(vars(litellm.cache.cache)) if cache_params.get("redis_kwargs"): if not cache_params.get("host"): cache_params["host"] = cache_params["redis_kwargs"].get("host")