From 089770a178da6df078cee4092b6b38166eed098b Mon Sep 17 00:00:00 2001 From: yassin Date: Sat, 3 Oct 2026 22:43:19 +0000 Subject: [PATCH] chore(router): mark in-place kwargs update Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/router.py b/litellm/router.py index bd4cde32edb..b13aea60fdb 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -4039,7 +4039,7 @@ class Router: other_bucket: Final = "metadata" if metadata_variable_name == "litellm_metadata" else "litellm_metadata" other_bucket_metadata: Final = kwargs.get(other_bucket) if isinstance(other_bucket_metadata, Mapping) and KUBERNETES_POD_ROUTING_KEY in other_bucket_metadata: - kwargs[other_bucket] = { + kwargs[other_bucket] = { # rebind-ok: this method updates the router's request kwargs in place **other_bucket_metadata, KUBERNETES_POD_ROUTING_KEY: routing, }