From d5d8bca2d1cb2fcf89b7bbbfdf6e09b87976b3a7 Mon Sep 17 00:00:00 2001 From: Charan Rathore Date: Mon, 28 Sep 2026 09:48:29 +0530 Subject: [PATCH] style: remove redundant cache copy comments --- litellm/caching/in_memory_cache.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/caching/in_memory_cache.py b/litellm/caching/in_memory_cache.py index 33411a1447d..64e8bb3aafc 100644 --- a/litellm/caching/in_memory_cache.py +++ b/litellm/caching/in_memory_cache.py @@ -217,8 +217,6 @@ class InMemoryCache(BaseCache): try: cached_response = json.loads(original_cached_response) except (TypeError, ValueError): - # JSON strings already produce a new value. Isolate mutable data - # stored as Python objects without copying cached clients or handles. if isinstance(original_cached_response, (dict, list, BaseModel)): return deepcopy(original_cached_response) return original_cached_response