mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
fix(proxy): narrow pass-through provider resolution to BadRequestError
This commit is contained in:
parent
0a0c91483d
commit
f2049a7d9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue