From 23870cbda03562e8d40572ea02542bd95cec72ab Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 11 Oct 2025 16:38:32 -0700 Subject: [PATCH] fix(pass_through_endpoints.py): fix typo --- .../proxy/pass_through_endpoints/pass_through_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py index 18bab49eb4b..e00c4727ebb 100644 --- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py @@ -980,7 +980,7 @@ def create_pass_through_route( InitPassThroughEndpointHelpers, ) - if not not InitPassThroughEndpointHelpers.is_registered_pass_through_route( + if not InitPassThroughEndpointHelpers.is_registered_pass_through_route( route=endpoint ): raise HTTPException( @@ -1760,7 +1760,6 @@ class InitPassThroughEndpointHelpers: if len(parts) == 3: route_type = parts[1] registered_path = parts[2] - if route_type == "exact" and route == registered_path: return True elif route_type == "subpath": @@ -1827,6 +1826,7 @@ async def initialize_pass_through_endpoints( ## get combined pass-through endpoints from db + config combined_pass_through_endpoints: List[Union[Dict, PassThroughGenericEndpoint]] + if config_passthrough_endpoints is not None: combined_pass_through_endpoints = _get_combined_pass_through_endpoints( # type: ignore pass_through_endpoints, config_passthrough_endpoints