[Bug] 自定义 provider 模型的 name 字段在 UI 中不生效,始终显示模型 key
Open
Nobody has claimed this yet.
priority: P2
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
提交前确认
- 我已搜索过现有 issue,确认这不是重复
问题描述
在配置文件中为自定义 provider 的模型设置了 name 字段(显示名称),但 ZCode Desktop 的模型选择器仍然显示模型 key,而非 name 字段的值。
例如:
"deepseek": {
"models": {
"deepseek-v4-flash": {
"name": "DeepSeek V4 Flash",
"reasoning": { ... },
"limit": { ... }
}
}
}
期望结果:UI 显示 DeepSeek V4 Flash
实际结果:UI 显示 deepseek-v4-flash(模型 key)
环境
- ZCode Desktop: 3.4.2.3624
- Windows 11
- 配置文件: ~/.zcode/v2/config.json
备注
所有自定义 provider 下的模型都存在此问题,name 字段被忽略了,模型 key 被直接用作 UI 显示文本。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with ~/.zcode/v2/config.json using a custom provider model that defines name, then inspect how that configuration reaches the ZCode Desktop model selector. Done means the selector displays the model's name value, such as “DeepSeek V4 Flash,” instead of its key.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100