mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-01 01:18:34 +00:00
* fix(router): merge default metadata under the request's instead of replacing it * fix(router): join default metadata tags after the request's tags A router default_litellm_params.metadata.tags list replaced the request's tags, so the deployment and credential tags the router adds never reached the logged request tags. Default tags now follow the request's tags, skipping ones already present, like the proxy's key tag merge * fix(router): keep masking a router default turns on Merging default metadata under the request let a caller's mask_input or mask_output false switch off masking an admin set in default_litellm_params.metadata. A masking flag the default turns on now stays on, and a caller can still turn masking on. Also gives this PR's test suppressions a reason and adds a missing blank line * fix(router): keep the router's cache namespace and drop malformed caller tags and dicts A caller's metadata.redis_namespace no longer beats a router default, so it cannot pick another tenant's cache partition. A caller tags value that is not a list, or a non-dict value under a dict default, is treated as absent the way the proxy's merge_tags treats malformed tags, so the router defaults still apply. * test(router): check that mask_output stays on when the router default turns it on * fix(router): keep a router default guardrail whatever guardrails the request lists * fix(router): keep the admin's settings for a router default guardrail when the caller lists it * test(router): check that a router default guardrail entry keeps the admin's settings * fix(router): keep a router default private Langfuse trace private whatever the caller sends * fix(router): keep a router default function such as langfuse_masking_function over the caller's value --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| core | ||
| __init__.py | ||
| test_enforce_model_rate_limits.py | ||
| test_io_token_rate_limits.py | ||
| test_router.py | ||
| test_router_callback_hook_sequence.py | ||
| test_router_endpoints.py | ||
| test_router_entry_points.py | ||
| test_router_facade.py | ||
| test_router_fallbacks.py | ||
| test_router_fuzz_regressions_rust_only.py | ||
| test_router_get_deployments.py | ||
| test_router_helper_utils.py | ||
| test_router_host.py | ||
| test_router_max_parallel_requests.py | ||
| test_router_provider_endpoints.py | ||
| test_router_retries.py | ||
| test_router_surface_check.py | ||
| test_router_timeout.py | ||
| test_router_vector_store_endpoints.py | ||