Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

feat: Enhanced custom model profiles with multiple models per profile - #181

Open
emsanakhchivan wants to merge 1 commit into
21st-dev:mainfrom
emsanakhchivan:feature/custom-model-profiles-enhancement
Open

feat: Enhanced custom model profiles with multiple models per profile#181
emsanakhchivan wants to merge 1 commit into
21st-dev:mainfrom
emsanakhchivan:feature/custom-model-profiles-enhancement

Conversation

@emsanakhchivan

@emsanakhchivan emsanakhchivan commented Mar 7, 2026

Copy link
Copy Markdown

Summary

  • Support multiple models per custom profile (e.g., multiple models under one OpenRouter API)
  • Custom models now appear individually in model selector dropdown with profile name as subtitle
  • Added visibility toggle for custom models in 设置 > Models section
  • Fixed IPC transport to use activeConfigAtom for proper profile/model selection
  • Added search filtering for custom models in 设置
  • Removed redundant "Use" button from profile management (models are selected directly from dropdown)

Changes

  • Updated Model个人资料 type to include models: CustomModelConfig[] array
  • Added activeCustomModelIdAtom to track selected model within a profile
  • Added migration logic for old profile structure
  • Updated AgentModelSelector to show individual custom models with profile subtitle
  • Added hiddenModelIds prop to filter hidden models from dropdown
  • Fixed ipc-chat-transport.ts to use activeConfigAtom instead of legacy customClaudeConfigAtom
  • Added Custom Models subsection in 设置 > Models with visibility toggles
  • Added search filtering for custom models in 设置

Test plan

  • Create a custom profile with multiple models
  • Verify each model appears separately in the model dropdown
  • Verify profile name shows as subtitle under each custom model
  • Toggle custom model visibility in 设置 and verify dropdown updates
  • 搜索 in 设置 and verify custom models are filtered
  • Edit/remove profiles and verify changes persist

## Summary
- Support multiple models per custom profile (e.g., multiple models under one OpenRouter API)
- Custom models now appear individually in model selector dropdown with profile name as subtitle
- Added visibility toggle for custom models in 设置 > Models section
- Fixed IPC transport to use activeConfigAtom for proper profile/model selection
- Added search filtering for custom models in 设置
- Removed redundant "Use" button from profile management (models are selected directly from dropdown)

## Changes
- Updated Model个人资料 type to include `models: CustomModelConfig[]` array
- Added `activeCustomModelIdAtom` to track selected model within a profile
- Added migration logic for old profile structure
- Updated AgentModelSelector to show individual custom models with profile subtitle
- Added `hiddenModelIds` prop to filter hidden models from dropdown
- Fixed `ipc-chat-transport.ts` to use `activeConfigAtom` instead of legacy `customClaudeConfigAtom`
- Added Custom Models subsection in 设置 > Models with visibility toggles
- Added search filtering for custom models in 设置

## Test plan
- [ ] Create a custom profile with multiple models
- [ ] Verify each model appears separately in the model dropdown
- [ ] Verify profile name shows as subtitle under each custom model
- [ ] Toggle custom model visibility in 设置 and verify dropdown updates
- [ ] 搜索 in 设置 and verify custom models are filtered
- [ ] Edit/remove profiles and verify changes persist

Made-with: Cursor
注册 for free to subscribe to this conversation on GitHub. Already have an account? 登录.

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant