forked from phoenix/litellm-mirror
fix(huggingface_restapi.py): return initial hf error
This commit is contained in:
parent
7cb86c4e0f
commit
194c823783
2 changed files with 17 additions and 7 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue