Skip to content

feat:add more custom models config in settings#162

Open
Doge2077 wants to merge 2 commits intonetease-youdao:mainfrom
Doge2077:dev
Open

feat:add more custom models config in settings#162
Doge2077 wants to merge 2 commits intonetease-youdao:mainfrom
Doge2077:dev

Conversation

@Doge2077
Copy link
Contributor

增加多个 Custom 提供商配置,核心修改如下:

  • 配置结构扩展(src/renderer/config.ts、services/config.ts、src/
    main/libs/claudeSettings.ts)
    • 新增 customProviders[]、activeCustomProviderId
    • 模型默认选择新增 defaultModelProviderKey、
      defaultModelCustomProviderId,避免同名模型冲突
    • 保留并同步 legacy providers.custom 兼容逻辑
  • 设置页模型配置优化(src/renderer/components/Settings.tsx)
    • 支持 Custom 配置档案的新增/重命名/删除/切换
    • 增加名称去重、空名校验、至少保留一个档案等规则
    • Custom 全局开关与具体档案配置分离管理
  • 模型选择与状态识别增强(modelSlice.ts、ModelSelector.tsx、
    App.tsx)
    • 模型身份从仅 id 升级为 providerKey + customProviderId + id
    • 初始化和保存默认模型时会带上 provider/custom profile 信息
    • 构建可用模型列表时会展开多个 Custom 档案
  • API 调用路由增强(src/renderer/services/api.ts)
    • 能按 customProviderId 解析具体 Custom 档案配置
    • Custom 未启用或未配置时会给出明确错误
  • 配置导入导出升级(Settings.tsx)
    • 导出格式版本从 2 升到 3,纳入 customProviders 和
      activeCustomProviderId
    • 导入支持新旧格式并处理重名自动改名提示
  • 文案与杂项
    • i18n 新增 Custom 档案相关中英文文案(services/i18n.ts)
    • .gitignore 增加 /.idea。
image

@Doge2077 Doge2077 changed the title feat:add more custom modle config in settings feat:add more custom models config in settings Feb 27, 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.

1 participant