Skip to content

fix(upstream): classify 14018 as credit exhaustion - #183

Merged
Sliverkiss merged 1 commit into
Sliverkiss:masterfrom
qiling992:fix/issue-175-credit-exhaustion
Sep 21, 2026
Merged

Sliverkiss merged 1 commit into
Sliverkiss:masterfrom
qiling992:fix/issue-175-credit-exhaustion

Conversation

@qiling992

@qiling992 qiling992 commented Sep 20, 2026

Copy link
Copy Markdown

本段由 AI 治理机器人自动维护,请勿手工删除上面这行锚点注释。

  • 要点

要点:修复 #175,将 HTTP 429 且业务码为 14018 的响应精确归类为硬积分耗尽,同时保留其他 429 的软限流语义,并补充相关测试与验证。
要做的事:

  • 将 HTTP 429 且业务码为 14018 的响应精确分类为硬积分耗尽
  • 保留其他 429(包括歧义余额文案)的软限流语义
  • 增加分类回归测试
  • 增加 handler 端到端冷却/轮转测试
  • 运行 go test ./internal/upstream ./internal/server、其余 16 个包测试、go vet ./...、go build ./... 进行验证
  • 关联时间:2026-09-20T13:13:30.220Z

关联 canonical issue

Related to #175


修复 #175

  • 将 HTTP 429 且业务码为 14018 的响应精确分类为硬积分耗尽
  • 保留其他 429(包括歧义余额文案)的软限流语义
  • 增加分类回归测试和 handler 端到端冷却/轮转测试

验证:

  • go test ./internal/upstream ./internal/server
  • 其余 16 个包测试
  • go vet ./...
  • go build ./...

Fixes #175

@github-actions github-actions Bot added the bug Something isn't working label Sep 20, 2026
@github-actions

Copy link
Copy Markdown

🤖 本机器人已对这条 PR 做要点提炼,并关联到对应主题的规范 issue(机器人整理,如有异议请联系维护者)。

要点:修复 #175,将 HTTP 429 且业务码为 14018 的响应精确归类为硬积分耗尽,同时保留其他 429 的软限流语义,并补充相关测试与验证。
要做的事:

此 PR 保持开启,治理机器人不会关闭它。

@Sliverkiss
Sliverkiss merged commit 109752f into Sliverkiss:master Sep 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 429/14018 积分耗尽被误判为软限流,兜底反复选中耗尽账号;需保留 0.00 倍率免费模型可用性

3 participants