mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
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):
|
if isinstance(e, litellm.exceptions.BadRequestError):
|
||||||
raise e
|
raise e
|
||||||
else:
|
else:
|
||||||
|
error_str = (
|
||||||
|
f"GetLLMProvider Exception - {str(e)}\n\noriginal model: {model}"
|
||||||
|
)
|
||||||
raise litellm.exceptions.BadRequestError( # type: ignore
|
raise litellm.exceptions.BadRequestError( # type: ignore
|
||||||
message=f"GetLLMProvider Exception - {str(e)}\n\noriginal model: {model}",
|
message=f"GetLLMProvider Exception - {str(e)}\n\noriginal model: {model}",
|
||||||
model=model,
|
model=model,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue