Repository navigation
Conversation
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与修复
Fable 请求返回只有
rate_limit_error / Error的裸 429 时,调度器已正确将其识别为模型级限流,但请求结束记账调用的isAccountQuotaExhausted()仍会把所有非号池合成的 429 当作账号额度耗尽,给整个账号写入没有 reset 的 5hrejected。随后配额同步会不断续加 5 分钟冷却,连 Opus 请求也会被拦截,并显示“号池负载过高”。本 PR 要求明确的计划额度提示,或 429 上的 5h/7d 拒绝响应头,才能确认账号额度耗尽。裸 429、RPM 及 Fable 专属限制不再被升级成整个账号的 5h 拒绝。现有模型级限流处理保持有效。
当所有候选仅因账号配额冷却无法分配时,返回
pool_rate_limited/ HTTP 429,并保留等待时间;真正的并发容量不足继续返回原容量错误。验证
main(1.4.105,57ca56a6),6 个相关测试文件共 319 项全部通过,无跳过。git diff --check通过。OK,约 6.2 秒,错误冷却标记为空。