Skip to content

Perf(api.py): 推理过程发生异常后返回错误信息 #679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: fast_inference_
Choose a base branch
from

Conversation

Soulter
Copy link

@Soulter Soulter commented Mar 5, 2024

感谢您杰出作品和无私的奉献!

在最新的api.py代码中,如果推理出现异常后会直接返回502,这个 pr 对异常做了处理,能够返回错误的具体信息,方便在调用 API 出现错误时了解错误内容。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant