🖌️v0.1.3,添加新错误建议,更改logo许可

This commit is contained in:
2024-10-03 01:43:19 +08:00
parent 734d3d3eec
commit e096655fc5
3 changed files with 68 additions and 21 deletions

View File

@ -71,6 +71,8 @@ def suggest_solution(errinfo: str):
suggestion = "模型达到调用速率限制。请稍等一段时间或联系Bot管理员。"
elif "tokens_limit_reached" in errinfo:
suggestion = "请求token达到上限。请重置上下文。"
elif "content_length_limit" in errinfo:
suggestion = "请求体过大。请重置上下文。"
elif "unauthorized" in errinfo:
suggestion = "Azure凭据无效。请联系Bot管理员。"
if suggestion != "":