chore: 用户体验优化(报错信息&log)+ ruff的修改

This commit is contained in:
AL76
2025-03-13 02:51:53 +08:00
parent 70243c23c5
commit fe7ef7d731
3 changed files with 53 additions and 47 deletions

View File

@@ -132,7 +132,7 @@ class LLM_request:
# 常见Error Code Mapping
error_code_mapping = {
400: "参数不正确",
401: "API key 错误,认证失败",
401: "API key 错误,认证失败,请检查/config/bot_config.toml和.env.prod中的配置是否正确哦~",
402: "账号余额不足",
403: "需要实名,或余额不足",
404: "Not Found",