Repository navigation
fix: 修复模型广场显示未定价的模型 - #6177
Open
YDHusky wants to merge 1 commit into
Open
fix: 修复模型广场显示未定价的模型#6177YDHusky wants to merge 1 commit into
YDHusky wants to merge 1 commit into
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughChangesBilling configuration filtering
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
JacksonsY
added a commit
to JacksonsY/new-api
that referenced
this pull request
Jul 15, 2026
PR QuantumNous#6177(隐藏未定价模型)只更新了 controller/model_list_test.go,漏了上游 model/pricing_endpoint_test.go(来自 PR QuantumNous#5825)——后者用未定价模型验证 endpoint 类型推断, 依赖「未定价模型出现在 GetPricing」。PR 后非自用模式下这些模型被排除,7 个测试挂。 在共享 helper resetPricingEndpointTestTables 临时开启自用模式(带还原),让未定价测试模型 仍以默认档暴露、复刻 PR 前可见性;endpoint 推断断言不受影响。合并上游若其补了同一测试需 留意此处。 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Calcium-Ion
force-pushed
the
main
branch
2 times, most recently
from
August 30, 2026 15:03
51fdfc5 to
2b6f1df
Compare
This branch has not been deployed
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.
模型广场会显示未定价的模型,提交修复了只显示已定价的模型
📝 变更描述 / Description
统一新增模型计费配置判断,支持固定价格、倍率配置和有效的阶梯计费表达式。模型广场构建定价列表时会跳过未配置任何有效计费规则的模型,避免使用默认倍率 37.5 生成错误价格;同时复用该判断逻辑,确保模型列表与模型广场的可见性保持一致。补充回归断言,覆盖未定价模型、空阶梯表达式模型和缺失阶梯表达式模型。
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
Summary by CodeRabbit