@suifei/dsh-ai-team 0.4.81 → 0.4.82
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.
- package/client.js +7 -4
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -270,7 +270,7 @@ window.__ModuleLoader__.load({
|
|
|
270
270
|
memberModel: '模型',
|
|
271
271
|
memberReasoning: '推理等级',
|
|
272
272
|
memberReasoningDefault: '跟随模型默认',
|
|
273
|
-
memberReasoningNone: '
|
|
273
|
+
memberReasoningNone: '该模型没有声明推理档位;在 DSH 提供商设置里为它配置 reasoningEfforts 后,这里才会出现可选档位',
|
|
274
274
|
memberReasoningError: '推理等级读取失败:{message}',
|
|
275
275
|
memberReasoningAsk: '为 {model} 选择推理等级',
|
|
276
276
|
memberProviderDefault: '跟随系统默认',
|
|
@@ -687,7 +687,7 @@ window.__ModuleLoader__.load({
|
|
|
687
687
|
memberModel: 'Model',
|
|
688
688
|
memberReasoning: 'Reasoning',
|
|
689
689
|
memberReasoningDefault: 'Model default',
|
|
690
|
-
memberReasoningNone: 'This model
|
|
690
|
+
memberReasoningNone: 'This model declares no reasoning levels; add reasoningEfforts for it in the DSH provider settings to enable this selector',
|
|
691
691
|
memberReasoningError: 'Could not read reasoning levels: {message}',
|
|
692
692
|
memberReasoningAsk: 'Pick a reasoning level for {model}',
|
|
693
693
|
memberProviderDefault: 'Follow system default',
|
|
@@ -2529,6 +2529,11 @@ window.__ModuleLoader__.load({
|
|
|
2529
2529
|
})
|
|
2530
2530
|
.then((body) => {
|
|
2531
2531
|
if (!alive) return;
|
|
2532
|
+
// 端点用 ok:false 表达「查不到」:不能当成「该模型没有档位」,否则用户
|
|
2533
|
+
// 会以为模型不支持推理,而实际是适配器没回答。
|
|
2534
|
+
if (body !== null && typeof body === 'object' && body.ok === false) {
|
|
2535
|
+
throw new Error(body?.error?.message ?? t('memberReasoningError'));
|
|
2536
|
+
}
|
|
2532
2537
|
setEfforts({ efforts: Array.isArray(body?.efforts) ? body.efforts : [], defaultEffort: body?.defaultEffort ?? null });
|
|
2533
2538
|
setEffortsError('');
|
|
2534
2539
|
})
|
|
@@ -2551,8 +2556,6 @@ window.__ModuleLoader__.load({
|
|
|
2551
2556
|
: efforts !== null && availableEfforts.length === 0 && effortsLoading === false
|
|
2552
2557
|
? t('memberReasoningNone')
|
|
2553
2558
|
: '';
|
|
2554
|
-
const providers2 = providers;
|
|
2555
|
-
const providersAll = providers2;
|
|
2556
2559
|
if (provider !== '' && !providers.some((entry) => entry.id === provider)) {
|
|
2557
2560
|
providers.unshift({ id: provider, name: provider, models: model === '' ? [] : [{ id: model, name: model }], modelCount: model === '' ? 0 : 1 });
|
|
2558
2561
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suifei/dsh-ai-team",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.82",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
|
|
6
6
|
"license": "MIT",
|