diff --git a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py index 78843749b36..b95cb945e5e 100644 --- a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py +++ b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py @@ -134,7 +134,7 @@ class VertexPassthroughLoggingHandler: ``.../gemini-3.8-flash:streamGenerateContent?alt=sse`` still matches. """ path = urlparse(url_route).path - return path.endswith(method) or path.endswith(":" + method) + return path.endswith((method, ":" + method)) @staticmethod def vertex_passthrough_handler(