-
-
Notifications
You must be signed in to change notification settings - Fork 181
feat(providers): 按成本倍数自动排序供应商优先级 (#555) #569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ding113
merged 11 commits into
ding113:dev
from
YangQing-Lin:feature/555-auto-sort-provider-priority
Jan 10, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9bf976d
feat(providers): add auto-sort priority by costMultiplier (#555)
YangQing-Lin 030d07f
变更概要:
YangQing-Lin 3f419a4
变更概要:
YangQing-Lin 34efda9
fix(ui): 为纯图标导出按钮补充 aria-label,修复相关单测
YangQing-Lin c6ea415
fix(ui): 修复 session-messages-client 组件缩进混乱问题
YangQing-Lin 26ecaa9
fix(providers): 统一 React Query QueryClient,改用 invalidate 刷新供应商列表
YangQing-Lin 03d9b03
⏺ fix(test): 将需要数据库的 API 测试移入集成测试配置
YangQing-Lin 469334c
fix(ui): 修复 AlertDialogDescription 内嵌套 div 导致的 hydration 错误
YangQing-Lin 2c01661
Merge upstream/dev into feature/555-auto-sort-provider-priority
YangQing-Lin ae95b65
Merge upstream/dev into feature/555-auto-sort-provider-priority
YangQing-Lin e28a83f
fix(ui): remove duplicate aria-label
YangQing-Lin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
建议将 AutoSortResult 类型提取到共享位置
此类型定义与 UI 组件文件
src/app/[locale]/settings/providers/_components/auto-sort-priority-dialog.tsx(第 29-48 行)中的定义重复。这违反了 DRY 原则,增加了维护成本和不一致的风险。♻️ 建议的重构方案
将类型提取到共享类型文件(例如
src/types/provider.ts或src/actions/types.ts):然后在两个文件中导入:
🤖 Prompt for AI Agents