Repository navigation
fix(quota): reconcile Go plan limits by request count for 0.11.2 - #47
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
问题
0.11.1 判断能否用 OpenCode Go 套餐上限作为预估时按金额核对。没有价格的模型(例如映射到 Go 账户的 Gemini)不计入金额,本周期同时用了 DeepSeek V4.1 Flash 和这类模型时,金额正好对上,页面会把 DeepSeek 的周上限 $40 当成整窗价值。本周期还没有请求时,也会默认显示 DeepSeek 的上限,而实际所用模型未知。
变化
验证
bun run typecheck、bun test tests(498 通过,0 失败)。tests/quota-go-plan.test.ts新增「DeepSeek 加无价格的 Gemini 请求」回退场景,「无请求」改为回退并与不传档位的结果完全一致。🤖 Generated with Claude Code