If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via ASRC(Alibaba Security Response Center) where the issue will be triaged appropriately.
[x] I have searched the issues of this repository and believe that this is not a duplicate.
If you are reporting any crash or any potential security issue, do not open an issue in this repo. Please report the issue via ASRC(Alibaba Security Response Center) where the issue will be triaged appropriately.
Ⅰ. Issue Description
ai-token-ratelimit 插件限制每分钟消耗的总 token 数为 200。
请求总共消耗了 46 个 token(13 input, 33 output)
ai-statistics 插件的统计结果是准确的。
然而在 ai-token-ratelimit 插件在 Redis 中减去的 token 数是实际的 2 倍。(200 - 108 = 92)
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment: