dsh-opendesign-corouter 0.1.6 → 0.1.8
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/README.md +14 -12
- package/lib/catalog.d.ts +5 -4
- package/lib/client.js +173 -66
- package/lib/device-auth.d.ts +1 -1
- package/lib/generated/typert.host.js +10 -6
- package/lib/generated/typert.remote-client.js +10 -6
- package/lib/index.js +130 -81
- package/lib/index.js.map +3 -3
- package/lib/reasoning.d.ts +6 -0
- package/lib/remote.d.ts +1 -0
- package/lib/schema-serialization.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ dsh plugin --profile web add dsh-opendesign-corouter
|
|
|
32
32
|
也可打开 [Actions → CI](https://github.com/KouzakiUmi/dsh-opendesign-corouter/actions/workflows/ci.yml),从成功构建下载 **`dsh-opendesign-corouter-build`** artifact。登录 GitHub 后解压 ZIP,取得 `.tgz` 与 `.sha256`,再安装本地包:
|
|
33
33
|
|
|
34
34
|
```console
|
|
35
|
-
dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.
|
|
35
|
+
dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.8.tgz
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
`web` 只是示例,请替换为目标 Profile。Desktop 使用桌面安装器提供的 `dsh` 入口;独立公共 CLI 不能代管保留的 `desktop` Profile。安装后的启用与重载按目标 DSH 的管理流程进行。
|
|
@@ -48,16 +48,18 @@ dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.6.tgz
|
|
|
48
48
|
|
|
49
49
|
## 功能预览
|
|
50
50
|
|
|
51
|
-
###
|
|
51
|
+
### 模型分组与默认参数
|
|
52
52
|
|
|
53
53
|
| Provider | 模型数 | 用途 |
|
|
54
54
|
| --- | ---: | --- |
|
|
55
55
|
| `opendesign-corouter-plan` | 13 | Core / Design Plan 附赠通道,含预检确认覆盖的 MiniMax M3.1 Flash |
|
|
56
56
|
| `opendesign-corouter-paid` | 25 | Plan 套餐模型及其他钱包付费模型 |
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
上表为内置目录。模型页可通过当前配置网关的 OpenAI 兼容 `/models` 接口刷新目录,逐个启用或停用模型,并配置温度、top-p、默认输出上限、上下文预算及思考深度。停用同时影响模型选择器和直接调用;参数会保存并应用到实际请求。媒体生成接口不在对话目录中,未知能力不按名称猜测。
|
|
59
59
|
|
|
60
|
-
推理协议可选 **OpenAI Chat Completions、OpenAI Responses、Anthropic Messages
|
|
60
|
+
推理协议可选 **OpenAI Chat Completions、OpenAI Responses、Anthropic Messages**。模型发现始终使用当前网关的 OpenAI 兼容 `/models` 接口,不随推理协议切换。
|
|
61
|
+
|
|
62
|
+
思考档位按精确型号的厂商文档维护,并按当前协议筛选。33 款提供离散档位,4 款为固定思考或开关/预算控制,Muse Wonder 的精确别名尚待确认。旧配置中的无效默认档位可在参数设置中改为“继承默认”。[逐模型来源与网关验证状态](docs/reasoning-evidence.md)
|
|
61
63
|
|
|
62
64
|
> **分组不等于计费隔离。** 赠送额度耗尽后是否转扣套餐余额或钱包,由服务端和账号权益决定。选择“套餐赠送”不能保证绝不消耗钱包余额。
|
|
63
65
|
|
|
@@ -72,24 +74,24 @@ dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.6.tgz
|
|
|
72
74
|
|
|
73
75
|
### 桌面优先,也能独立登录
|
|
74
76
|
|
|
75
|
-
|
|
77
|
+
点击“开始设备授权”后,插件在临时 Chrome 窗口打开官方授权页。也可用“复制授权链接”在常用浏览器完成确认;复制不可用时会显示可选取的链接。确认后自动保存授权,取消或到期时结束等待并关闭临时窗口。
|
|
76
78
|
|
|
77
79
|
<picture>
|
|
78
80
|
<source media="(prefers-color-scheme: dark)" srcset="docs/previews/theme-dark.png">
|
|
79
81
|
<img src="docs/previews/theme-light.png" width="1040" alt="连接与登录页,展示桌面优先开关、独立登录按钮和不回填的 API Key 输入框;模拟数据">
|
|
80
82
|
</picture>
|
|
81
83
|
|
|
82
|
-
###
|
|
84
|
+
### DeepSeek V4.1 Flash 空回答检测
|
|
83
85
|
|
|
84
86
|
独立开关,默认开启。参考 [dsh-empty-turn-guard](https://github.com/FYTXY/dsh-empty-turn-guard),将“正常 stop、没有工具调用、答案为空或只剩协议残渣”的工具对话标成 `EMPTY_RESPONSE`。
|
|
85
87
|
|
|
86
|
-
|
|
88
|
+
检测到空回答后,由 DSH 的重试策略决定是否重试,**重复请求可能额外消耗额度**。该附加监控仅用于 DeepSeek V4.1 Flash 的工具对话,识别 DSML、thinking 及 `<rea:tool_calls>` 残留。
|
|
87
89
|
|
|
88
90
|
## 使用前先知道
|
|
89
91
|
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
92
|
+
- **额度数据**:来自官方服务及桌面端,部分接口可能随上游变化;实际扣款以控制台和账单为准。
|
|
93
|
+
- **凭据存储**:API Key 和设备授权由 DSH 凭据服务保存,落盘保护取决于宿主与本机权限,详见[安全说明](SECURITY.md)。
|
|
94
|
+
- **验证状态**:已完成真实设备授权、模型目录读取和逐模型计费预检,以及类型、隔离加载、离线界面与主题检查。真实推理和已安装 Profile 的完整联调仍待验证。
|
|
93
95
|
|
|
94
96
|
## 兼容性
|
|
95
97
|
|
|
@@ -98,10 +100,10 @@ dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.6.tgz
|
|
|
98
100
|
| 目标 DSH Core | `0.2.1-rc.3`,以官方同版本发布包验证 |
|
|
99
101
|
| Core 声明范围 | `>=0.2.1-rc.3 <0.3.0-0`,范围内其他版本不代表已实测 |
|
|
100
102
|
| Node.js | `>=24.9.0` |
|
|
101
|
-
| 独立登录 |
|
|
103
|
+
| 独立登录 | 自动打开需本机 Chrome;也可复制链接到常用浏览器确认 |
|
|
102
104
|
| 默认推理接口 | `https://amr-link.open-design.ai/v1/chat/completions` |
|
|
103
105
|
|
|
104
|
-
CI 在 Windows 与 Ubuntu 执行构建、类型检查及隔离测试;Ubuntu
|
|
106
|
+
CI 在 Windows 与 Ubuntu 执行构建、类型检查及隔离测试;Ubuntu 另执行四页签浏览器和亮暗主题检查。[开发与验证范围](docs/development.md)
|
|
105
107
|
|
|
106
108
|
## 开发与构建
|
|
107
109
|
|
package/lib/catalog.d.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* 详情页内联 `data-model="{...}"` JSON(公开页面,2026-10-26)。
|
|
7
7
|
* - group:官网首页套餐卡 `https://corouter.open-design.ai/zh/` 的
|
|
8
8
|
* `data-model-module="design-plan"` 12 款归 `plan`;其余在售对话模型归 `paid`。
|
|
9
|
-
* - `plan` 12 款的 contextWindow / maxOutputTokens / inputModalities
|
|
9
|
+
* - `plan` 原有 12 款的 contextWindow / maxOutputTokens / inputModalities
|
|
10
10
|
* 来自 Go 侧 `dsh-opendesign-go` 0.1.9 的 MODEL_DEFAULTS(同一 `amr-link` endpoint 部署资料),
|
|
11
|
-
*
|
|
11
|
+
* 作为部署参考,尚无官网能力数值的独立佐证;只用于对应的原有 12 款模型。
|
|
12
12
|
* - 客户端桌面安装(Open Design 0.26.1)不内联 CoRouter 目录;其
|
|
13
13
|
* `vela model preset --format json` 只有 11 个旧预设 id(见 docs/client-evidence.md),
|
|
14
14
|
* 与本表不同代,故不用于本目录。
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
* - 媒体模型 `GPT Image 2`、`Nano Banana 2`、`Seedream 5 Lite / Pro`:
|
|
27
27
|
* 走 `/api/v1/media/*`,不应出现在对话模型列表里,避免选中后 chat 请求必败。
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* 思考档位按厂商型号资料记录,来源见 docs/reasoning-evidence.md;网关逐路由行为未实测。
|
|
30
|
+
* 其余容量与模态字段仍按已有来源保留,未知值保持缺省。
|
|
31
31
|
*/
|
|
32
32
|
export interface CatalogModel {
|
|
33
33
|
id: string;
|
|
@@ -36,6 +36,7 @@ export interface CatalogModel {
|
|
|
36
36
|
contextWindow?: number;
|
|
37
37
|
maxOutputTokens?: number;
|
|
38
38
|
inputModalities?: readonly ('text' | 'image')[];
|
|
39
|
+
/** Undefined means unconfirmed; an empty array means no discrete effort selector. */
|
|
39
40
|
reasoningEfforts?: readonly string[];
|
|
40
41
|
}
|
|
41
42
|
/**
|