From fceabeec1589ec34d57768b3824bd4a5afd35125 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 13 Feb 2026 20:04:30 -0800 Subject: [PATCH] Update litellm/proxy/policy_engine/pipeline_executor.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/policy_engine/pipeline_executor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/policy_engine/pipeline_executor.py b/litellm/proxy/policy_engine/pipeline_executor.py index 525fa211330..73d3635434c 100644 --- a/litellm/proxy/policy_engine/pipeline_executor.py +++ b/litellm/proxy/policy_engine/pipeline_executor.py @@ -57,6 +57,8 @@ class PipelineExecutor: """ step_results: List[PipelineStepResult] = [] working_data = data.copy() + if "metadata" in working_data: + working_data["metadata"] = working_data["metadata"].copy() for i, step in enumerate(steps): start_time = time.perf_counter()