Repository navigation
Replies: 2 comments
|
补充一个 0.2.1-rc.2 的独立复现,确认不是 rc.1 个例。
建议:升级时自动迁移/清理旧 Reproduced on 0.2.1-rc.2 as well; switching the legacy |
|
补充:这个问题在 0.2.1-rc.2 Windows 桌面版(FileVersion 环境:Windows x64,桌面运行时,profile 现象:profile patch 的 代码里其实有明确报错(
只是它没有出现在插件列表/设置页上。 本地 workaround:删掉该段的 建议:升级到 0.2.1 时,对 profile patch 里已废弃的 |
Uh oh!
There was an error while loading. Please reload this page.
升级到 0.2.1-rc.1 后模型列表为空:profile 中残留旧版
models字段导致llm-deepseek-account加载失败,且 UI 无错误提示环境
0.2.1-rc.1(Windows x64)0.2.0-rc.2desktop现象
升级到 0.2.1-rc.1 后,模型选择器显示 “暂无可用模型”,无法选择任何模型。
已尝试但均无效的动作:
排查证据
1. 账号 token 有效,模型接口正常
使用本机凭据文件中的账号 token 直接请求:
返回 HTTP 200,并正确列出 2 个模型:
{"object":"list","data":[ {"id":"deepseek-flash","name":"DeepSeek-V4.1-Flash",...}, {"id":"deepseek-v4-pro","name":"DeepSeek-V4-Pro",...} ]}2. 排除网络与 Node 运行时因素
使用桌面端自带 Node(
resources/runtime/primary-runtime/dependencies/node/bin/node.exe)发起同样的请求,同样返回 HTTP 200。因此可排除:网络不通、代理拦截、DNS、Node 运行时差异。
3. 凭据文件完整
$DSH_HOME/.credentials.yaml中deepseek-account-platform/default记录完整存在(token 与 issuer 均在)。4. 定位到 profile 配置中的旧字段
$DSH_HOME/profiles/desktop/cordis.patch.yml中存在以下配置:5. 与官方文档冲突
packages/llm/llm-deepseek-account/README.zh.md明确说明:根因
cordis.patch.yml。该段配置包含systemPromptUpdate、toolUpdate等协议能力字段,这些字段无法在 UI 中手工编辑,可确认是程序写入而非用户输入。models字段。llm-deepseek-account插件加载校验失败,账号路由未注册。期望行为
models字段(转换为modelOverrides,或直接移除并在日志中提示)。“配置校验失败:
llm-deepseek-account不支持models字段,请改用modelOverrides”。临时规避方案
删除
$DSH_HOME/profiles/desktop/cordis.patch.yml中llm-deepseek-account下的config.models整段,保留:重启后模型列表恢复正常。
影响面
所有从 0.2.0 或更早版本升级、且旧版本曾向 profile 写入模型目录配置的用户。属于升级路径上的普遍性问题,非个例。
[EN] Empty model list after upgrading to 0.2.1-rc.1: legacy
modelsfield in profile config breaksllm-deepseek-accountload, with no UI errorEnvironment
0.2.1-rc.1(Windows x64)0.2.0-rc.2desktopSymptom
After upgrading to 0.2.1-rc.1, the model picker shows "No models available".
The following were attempted and did not help:
Evidence
1. Account token is valid and the models endpoint works
Returns HTTP 200 with two models (
deepseek-flash,deepseek-v4-pro).2. Node runtime and network ruled out
The same request issued from the bundled Node runtime (
resources/runtime/primary-runtime/dependencies/node/bin/node.exe) also returns HTTP 200.3. Credentials intact
$DSH_HOME/.credentials.yamlcontains a completedeepseek-account-platform/defaultgrant (token + issuer).4. Legacy field found in profile config
$DSH_HOME/profiles/desktop/cordis.patch.ymlcontains:5. Conflicts with documented behavior
Per
packages/llm/llm-deepseek-account/README.md:Root cause
cordis.patch.yml. The block contains protocol capability fields (systemPromptUpdate,toolUpdate) that cannot be edited through the UI, confirming it was written by the application.modelsis no longer accepted.llm-deepseek-accountfailed its load-time validation and the route was never registered.Expected behavior
modelsfield during upgrade (convert tomodelOverridesor drop it with a log entry).llm-deepseek-accountdoes not acceptmodels; usemodelOverrides”.Workaround
Remove the
config.modelsblock underllm-deepseek-accountin$DSH_HOME/profiles/desktop/cordis.patch.yml, leaving:After restarting, the model list is restored.
Impact
Any user upgrading from 0.2.0 or earlier whose profile contains the legacy model catalog. This is a migration-path issue rather than a one-off.
All reactions