(proxy perf improvement) - remove redundant .copy() operation (#7564)

* latency fix proxy

* remove useless copy in add_key_level_controls
This commit is contained in:
Ishaan Jaff 2025-01-06 20:36:47 -08:00 committed by GitHub
parent 6125ba1e2b
commit 819079f23b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -286,7 +286,6 @@ class LiteLLMProxyRequestSetup:
def add_key_level_controls(
key_metadata: dict, data: dict, _metadata_variable_name: str
):
data = data.copy()
if "cache" in key_metadata:
data["cache"] = {}
if isinstance(key_metadata["cache"], dict):