diff --git a/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py b/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py index bc01fa8f85f..6136c05cec6 100644 --- a/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py +++ b/litellm/proxy/pass_through_endpoints/jsonpath_extractor.py @@ -21,9 +21,7 @@ def _normalize_wildcard_segments(expr: str) -> tuple[str, ...]: nested-wildcard expression is silently dropped and skips the guardrail (#46302). """ - segments: Final = tuple( - segment for segment in expr.replace("[*]", ".[*]").split(".") if segment - ) + segments: Final = tuple(segment for segment in expr.replace("[*]", ".[*]").split(".") if segment) return segments