mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Merge pull request #4684 from BerriAI/litellm_safe_memory_mode
[Feat] Allow safe memory mode
This commit is contained in:
commit
1adff9cbd6
2 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,8 @@ def safe_deep_copy(data):
|
|||
|
||||
Use this function to safely deep copy the LiteLLM Request
|
||||
"""
|
||||
if litellm.safe_memory_mode is True:
|
||||
return data
|
||||
|
||||
# Step 1: Remove the litellm_parent_otel_span
|
||||
if isinstance(data, dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue