dsh-nvidia-models-panel 1.3.21 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/group.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-nvidia-models-panel",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "type": "module",
5
5
  "description": "Nvidia 模型面板 — 检测 NVIDIA NIM 可用模型、逐个真实试调用验证、面板内保存 API Key,一键配置进 DeepSeek Harness 设置",
6
6
  "description.en": "Detects available NVIDIA NIM models, verifies each with a real streaming call, saves the API key in-panel, and one-click configures DeepSeek Harness settings.",
package/src/group.js CHANGED
@@ -531,7 +531,10 @@ export function createGroupAdapter(deps) {
531
531
  }
532
532
  const pickAuto = isAutoMemberId(options && options.model);
533
533
  const current = pickAuto ? null : members.find((m) => m.id === (options && options.model));
534
- let candidates = current ? [current, ...members.filter((m) => m.id !== current.id)] : members;
534
+ // 手动选中具体模型 = 锁定该模型:候选只保留它本身,不做任何自动故障转移。
535
+ // 这样失败就如实报错,不会悄悄切到别的成员、也不会在面板"自动切换"里计数。
536
+ // 只有选「模型组(自动)」时才把全部成员交给故障转移引擎轮询。
537
+ let candidates = current ? [current] : members;
535
538
  // 能力感知路由(软过滤):含图片的请求**优先**把多模态成员排到前面,
536
539
  // 但保留全部成员作为后备。绝不把组员砍到只剩"看起来支持图片"的那几个——
537
540
  // id 正则判断并不可靠(如 muse-glimmer 实为多模态却被判为纯文本),