mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Revert "(fix) remove deep copy for all requests"
This reverts commit 0737fdb348.
This commit is contained in:
parent
f2e1d938f3
commit
29fb7e126f
1 changed files with 6 additions and 0 deletions
|
|
@ -3084,6 +3084,7 @@ async def chat_completion(
|
|||
"url": str(request.url),
|
||||
"method": request.method,
|
||||
"headers": dict(request.headers),
|
||||
"body": copy.copy(data), # use copy instead of deepcopy
|
||||
}
|
||||
|
||||
## Cache Controls
|
||||
|
|
@ -3311,6 +3312,7 @@ async def embeddings(
|
|||
"url": str(request.url),
|
||||
"method": request.method,
|
||||
"headers": dict(request.headers),
|
||||
"body": copy.copy(data), # use copy instead of deepcopy
|
||||
}
|
||||
|
||||
if data.get("user", None) is None and user_api_key_dict.user_id is not None:
|
||||
|
|
@ -3486,6 +3488,7 @@ async def image_generation(
|
|||
"url": str(request.url),
|
||||
"method": request.method,
|
||||
"headers": dict(request.headers),
|
||||
"body": copy.copy(data), # use copy instead of deepcopy
|
||||
}
|
||||
|
||||
if data.get("user", None) is None and user_api_key_dict.user_id is not None:
|
||||
|
|
@ -3638,6 +3641,7 @@ async def audio_transcriptions(
|
|||
"url": str(request.url),
|
||||
"method": request.method,
|
||||
"headers": dict(request.headers),
|
||||
"body": copy.copy(data), # use copy instead of deepcopy
|
||||
}
|
||||
|
||||
if data.get("user", None) is None and user_api_key_dict.user_id is not None:
|
||||
|
|
@ -3807,6 +3811,7 @@ async def moderations(
|
|||
"url": str(request.url),
|
||||
"method": request.method,
|
||||
"headers": dict(request.headers),
|
||||
"body": copy.copy(data), # use copy instead of deepcopy
|
||||
}
|
||||
|
||||
if data.get("user", None) is None and user_api_key_dict.user_id is not None:
|
||||
|
|
@ -6797,6 +6802,7 @@ async def async_queue_request(
|
|||
"url": str(request.url),
|
||||
"method": request.method,
|
||||
"headers": dict(request.headers),
|
||||
"body": copy.copy(data), # use copy instead of deepcopy
|
||||
}
|
||||
|
||||
verbose_proxy_logger.debug("receiving data: %s", data)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue