songquanpeng / one-api

OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
https://openai.justsong.cn/
MIT License
16.06k stars 3.73k forks source link

feat: 余额不足提示中文增强引导性 #1481

Open jinjianming opened 1 month ago

jinjianming commented 1 month ago

close #issue_number

我已确认该 PR 已自测通过,相关截图如下:

image image

(此处放上测试通过的截图,如果不涉及前端改动或从 UI 上无法看出,请放终端启动成功的截图)

Laisky commented 6 days ago

message 可以中文,但是 code 应该保留英文。这个 code 的设计,我理解是为 i18n 提供标准化的依据。

jinjianming commented 6 days ago

message可以中文,但是code应该保留英文。这个代码的设计,我理解是为i18n提供标准化的依据。

已将code改为insufficient_user_quota

Laisky commented 6 days ago

可以考虑把提交合并一下,还有 CI 也挂了两个,可以看一下。

jinjianming commented 6 days ago

GraphQL: Resource not accessible by integration (addComment) @Laisky 貌似没有权限?

Laisky commented 6 days ago

@songquanpeng Code coverage report 的 CI 看上去因为 github token 的问题,都挂了