From f2049a7d9b63a3d44736950dd1635da5635fc6f5 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Wed, 5 Aug 2026 12:37:12 -0700 Subject: [PATCH] fix(proxy): narrow pass-through provider resolution to BadRequestError --- .../proxy/pass_through_endpoints/passthrough_endpoint_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py b/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py index dc53686b3cc..1d2b4504d61 100644 --- a/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py +++ b/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py @@ -116,7 +116,7 @@ class PassthroughEndpointRouter: model=model, custom_llm_provider=litellm_params.get("custom_llm_provider"), ) - except Exception: + except litellm.exceptions.BadRequestError: return None return provider