feat add safe_memory_mode

This commit is contained in:
Ishaan Jaff 2024-07-12 18:18:39 -07:00
parent d2a0977af7
commit c43948545f
2 changed files with 3 additions and 0 deletions

View file

@ -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):