fix - GetLLMProvider excepton error raise

This commit is contained in:
Ishaan Jaff 2024-04-18 20:10:37 -07:00
parent 825622d120
commit 01b1136631

View file

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