feat(openai.py): bubble all error information back to client

This commit is contained in:
Krrish Dholakia 2025-03-10 15:27:43 -07:00
parent bb2fa73609
commit cc0606b38d
4 changed files with 18 additions and 5 deletions

View file

@ -331,6 +331,7 @@ def exception_type( # type: ignore # noqa: PLR0915
model=model,
response=getattr(original_exception, "response", None),
litellm_debug_info=extra_information,
body=getattr(original_exception, "body", None),
)
elif (
"Web server is returning an unknown error" in error_str