From 15e2f87c02a87829b4c3763b1e56e7724bb0964e Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 30 Sep 2026 08:07:57 -0700 Subject: [PATCH] fix(auth): match placeholder native routes like /v1/traces/{trace_id} --- litellm/proxy/auth/route_checks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litellm/proxy/auth/route_checks.py b/litellm/proxy/auth/route_checks.py index 2ab76a7a101..c1669542d1a 100644 --- a/litellm/proxy/auth/route_checks.py +++ b/litellm/proxy/auth/route_checks.py @@ -413,6 +413,11 @@ class RouteChecks: if route in LiteLLMRoutes.litellm_native_routes.value: return True + # native routes with placeholders, e.g. "/v1/traces/{trace_id}" + for native_route in LiteLLMRoutes.litellm_native_routes.value: + if "{" in native_route and RouteChecks._route_matches_pattern(route=route, pattern=native_route): + return True + # fuzzy match routes like "/v1/threads/thread_49EIN5QF32s4mH20M7GFKdlZ" # Check for routes with placeholders or wildcard patterns for openai_route in LiteLLMRoutes.openai_routes.value: