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