Skip to content
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

额度用尽后无明确提示,是用户额度、渠道额度还是令牌额度 #667

Open
5 tasks done
sagezhj opened this issue Dec 27, 2024 · 1 comment
Open
5 tasks done
Labels
wontfix This will not be worked on

Comments

@sagezhj
Copy link

sagezhj commented Dec 27, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
超管用户,使用一段时间后会无法使用,所有渠道、所有令牌都正常。

复现步骤

  1. Docker服务搭建
  2. 添加渠道
  3. 添加令牌,并设定为不限时间、无限额度
  4. 使用一段时间后,所有渠道、令牌都无法使用,查看Docker日志提示:chat pre-consumed quota failed, user quota: 13810, need quota: 15000

预期结果

  1. 创建用户的时候,没有提示额度限制。希望在创建用户时,可以提示设置额度。
  2. 用户额度使用完成后,没有提示。希望在日志中可以体现因那项额度用完报错提示,因为额度总共有三处限制,一处用户额度、一处渠道额度、一处令牌额度。
  3. 超级管理员用户有默认额度,但无提示,且无法设置为无限额度。对于仅使用本地接口的用户来说,可以允许超管设置无限额度。所以建议增加超管额度无限设置,比如设置成-1。
@sagezhj sagezhj added the bug Something isn't working label Dec 27, 2024
@sagezhj sagezhj changed the title 管理员用户额度无法设置为无限 额度用尽后无明确提示,是用户额度、渠道额度还是令牌额度 Dec 27, 2024
@Calcium-Ion
Copy link
Owner

难道chat pre-consumed quota failed, user quota: 13810, need quota: 15000还提示的不够清楚吗?user quota: 13810, need quota: 15000

为了安全考虑,更不可能允许用户无限额度,包括管理员,请按照系统设计来!

@Calcium-Ion Calcium-Ion added wontfix This will not be worked on and removed bug Something isn't working labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants