feat: add unset price models tab to model pricing settings - #6124
Merged
Calcium-Ion merged 2 commits intoJul 11, 2026
Conversation
Contributor
WalkthroughAdds an unset-models tab to model pricing. It detects missing base prices, fetches enabled models for filtering, restricts unset-mode actions, commits drafts before batch copying, and adds translations for the new tab and empty state. ChangesUnset model pricing
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant RatioSettingsCard
participant ModelRatioForm
participant getEnabledModels
participant ModelRatioVisualEditor
RatioSettingsCard->>ModelRatioForm: render unset-models variant
ModelRatioForm->>getEnabledModels: fetch enabled model names
getEnabledModels-->>ModelRatioForm: return candidate names
ModelRatioForm->>ModelRatioVisualEditor: apply unset filter and candidates
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 |
11 tasks
agogo233
added a commit
to agogo233/new-api
that referenced
this pull request
Jul 13, 2026
* upstream/main: (56 commits) fix: list only channel models in unset price models tab fix: harden unset price models tab batch copy, feedback, and memo equality feat: add unset price models tab to model pricing settings (QuantumNous#6124) feat: enhance model search functionality with status and sync filters fix: bound uncached remainder by prompt-max(cached,write) and forward compact prompt_cache_key feat: bill OpenAI cache_write_tokens at cache-creation price with zero clamp feat: enhance text protocol conversion and advanced custom routing (QuantumNous#5825) fix: adjust margin for StatusBadge component in logs columns feat: enhance stale instance handling and update theme colors feat: update theme colors feat(timing): add timing metrics display for stream logs and enhance localization revert: restore StatusBadge horizontal padding revert: undo t0ng7u UI design-system refactor ✨ feat(web): polish themed data views and add task log details feat(image): enhance image stream handling with client disconnect logic and billing adjustments fix(billing): improve quota handling and error reporting for pre-consume operations fix(billing): reject saturated pre-consume quota 🐛 fix: Fontsource asset resolution across workspace layouts fix: sync codex field (QuantumNous#6018) chore(deps): bump golang.org/x/crypto from 0.51.0 to 0.52.0 (QuantumNous#6096) ...
lizhongyi1209
pushed a commit
to lizhongyi1209/new-api
that referenced
this pull request
Jul 13, 2026
lansine
pushed a commit
to evin-pubb/new-api-fork
that referenced
this pull request
Jul 14, 2026
…us#6124) * feat: add unset price models tab to model pricing settings * feat: add unset price models tab translations
zhaodechao2008
pushed a commit
to zhaodechao2008/new-api
that referenced
this pull request
Jul 27, 2026
…us#6124) * feat: add unset price models tab to model pricing settings * feat: add unset price models tab translations
330079598
pushed a commit
to 330079598/new-api
that referenced
this pull request
Aug 19, 2026
…us#6124) * feat: add unset price models tab to model pricing settings * feat: add unset price models tab translations
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
v1 界面的模型定价一直没有旧版的「未设置价格模型」功能,新加的模型要切回旧界面才能快速定价
这个 PR 在 计费设置 → 模型定价 下加回了这个 tab
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
从


未设置价格模型中设置价格添加成功
