mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
chore(router): mark in-place kwargs update
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
1fb883afb5
commit
089770a178
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue