fix(huggingface_restapi.py): return initial hf error

This commit is contained in:
Krrish Dholakia 2024-02-24 09:55:58 -08:00
parent 7cb86c4e0f
commit 194c823783
2 changed files with 17 additions and 7 deletions

View file

@ -2445,7 +2445,7 @@ async def completion(
)
traceback.print_exc()
error_traceback = traceback.format_exc()
error_msg = f"{str(e)}\n\n{error_traceback}"
error_msg = f"{str(e)}"
raise ProxyException(
message=getattr(e, "message", error_msg),
type=getattr(e, "type", "None"),