forked from phoenix/litellm-mirror
fix - GetLLMProvider excepton error raise
This commit is contained in:
parent
825622d120
commit
01b1136631
1 changed files with 3 additions and 0 deletions
|
@ -5943,6 +5943,9 @@ def get_llm_provider(
|
|||
if isinstance(e, litellm.exceptions.BadRequestError):
|
||||
raise e
|
||||
else:
|
||||
error_str = (
|
||||
f"GetLLMProvider Exception - {str(e)}\n\noriginal model: {model}"
|
||||
)
|
||||
raise litellm.exceptions.BadRequestError( # type: ignore
|
||||
message=f"GetLLMProvider Exception - {str(e)}\n\noriginal model: {model}",
|
||||
model=model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue