mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
style: remove redundant cache copy comments
This commit is contained in:
parent
7fb2c11eb5
commit
d5d8bca2d1
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue