fix(proxy): narrow pass-through provider resolution to BadRequestError

This commit is contained in:
mateo-berri 2026-08-05 12:37:12 -07:00
parent 0a0c91483d
commit f2049a7d9b

View file

@ -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