QuantumNous / QuantumNous/new-api
用户分组和用户令牌速率混淆
Open
Nobody has claimed this yet.
bug
stale
- Dominant language
- Go
- Stars
- 48.5k
- Forks
- 11.6k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 58
Description
Routine Checks
- I have confirmed there are no similar issues currently
- I have confirmed I have upgraded to the latest version
- I have thoroughly read the project README, especially the FAQ section
- I understand and am willing to follow up on this issue, assist with testing and provide feedback
- I understand and acknowledge the above, and understand that project maintainers have limited time and energy, issues that do not follow the rules may be ignored or closed directly
Issue Description
假设vip分组速率限定1分钟10次。A用户注册个普通账号后设为vip分组,但用户A创建的令牌为default分组。那么A用户不受到1分钟10次的限制
Expected Result
复现可以按照这个图片速率里设置
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported case using the rate-limit settings shown in the attached image: set a user group to 10 requests per minute, then use a token in the default group. Trace how the request identifies the applicable group and document which group should control the limit, along with a regression test for the corrected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100