mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix(proxy): use shallow copy for cache_params to prevent mutating underlying object
This commit is contained in:
parent
42ce3aa82a
commit
db29618816
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue