fix: list only channel models in unset price models tab - #6126
Merged
t0ng7u merged 1 commit intoJul 11, 2026
Conversation
Contributor
WalkthroughThe model ratio visual editor now limits model names to candidates when ChangesModel filtering
Estimated code review effort: 2 (Simple) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 12, 2026
上游 v1.0.0-rc.21 之后 2 个提交(PR QuantumNous#6126):未设价模型标签页只列渠道启用的模型。 唯一冲突文件 model-ratio-visual-editor.tsx 自动合并——上游改 modelNames 构造 (unset 模式只取候选模型),与 fork 的 design-system 换肤(第 46/804 行)不重叠。
lansine
pushed a commit
to evin-pubb/new-api-fork
that referenced
this pull request
Jul 14, 2026
…6126) Merge pull request QuantumNous#6126 from feitianbubu/fix/unset-tab-channel-models-only
zhaodechao2008
pushed a commit
to zhaodechao2008/new-api
that referenced
this pull request
Jul 27, 2026
…6126) Merge pull request QuantumNous#6126 from feitianbubu/fix/unset-tab-channel-models-only
330079598
pushed a commit
to 330079598/new-api
that referenced
this pull request
Aug 19, 2026
…6126) Merge pull request QuantumNous#6126 from feitianbubu/fix/unset-tab-channel-models-only
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.
Important
📝 变更描述 / Description
未设置价格模型列表目前的行来源是 渠道启用模型 ∪ 各倍率表出现过的模型名。后者会把一批"只在缓存/音频等次级倍率表里有 key、没有基础价、且不在任何渠道里"的历史遗留条目也列出来改动:只取渠道设置的启用模型,显示更干净
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
优化前: 会显示在硬编码但未在渠道里配置的模型


优化后: 只显示真正的未设置价格模型
Summary by CodeRabbit