Skip to content

feat: show model ids for duplicate names in model pickers#13654

Merged
kovsu merged 7 commits intoCherryHQ:mainfrom
kovsu:fix-#13647
Mar 25, 2026
Merged

feat: show model ids for duplicate names in model pickers#13654
kovsu merged 7 commits intoCherryHQ:mainfrom
kovsu:fix-#13647

Conversation

@kovsu
Copy link
Copy Markdown
Collaborator

@kovsu kovsu commented Mar 20, 2026

Fix #13647

CleanShot 2026-03-20 at 09 41 25@2x CleanShot 2026-03-20 at 09 35 27@2x CleanShot 2026-03-20 at 09 30 09@2x

kovsu and others added 2 commits March 20, 2026 10:08
Use useMemo to compute the combined unique models list (uniqBy) with dependencies [provider.id, listModels, models] to avoid unnecessary recomputation. Also remove an unnecessary `!important` from the monospace font-size in ModelIdWithTags to rely on normal stylesheet precedence and simplify styling.
Copy link
Copy Markdown
Collaborator

@Pleasurecruise Pleasurecruise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@EurFelux
Copy link
Copy Markdown
Collaborator

conflicts

@kovsu kovsu requested review from EurFelux March 23, 2026 15:32
Copy link
Copy Markdown
Collaborator

@EurFelux EurFelux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

整体质量不错!逻辑清晰,getDuplicateModelNames 工具函数抽取合理,useMemo 使用恰当。提了四个建议:一致性防护、TailwindCSS 样式偏好、多余的 re-export、以及新函数的测试覆盖。

Comment thread src/renderer/src/components/Popups/SelectModelPopup/base-popup.tsx Outdated
Comment thread src/renderer/src/components/Popups/SelectModelPopup/base-popup.tsx
Comment thread src/renderer/src/pages/settings/ProviderSettings/ModelList/utils.ts Outdated
Comment thread src/renderer/src/utils/model.ts
Copy link
Copy Markdown
Collaborator

@EurFelux EurFelux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kovsu kovsu merged commit c6f0153 into CherryHQ:main Mar 25, 2026
8 checks passed
@kovsu kovsu deleted the fix-#13647 branch March 25, 2026 03:12
MyPrototypeWhat pushed a commit that referenced this pull request Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Github copilot get duplicate models

3 participants