dsh-model-extension 0.1.1 → 0.3.1
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/LICENSE +21 -21
- package/README.md +72 -66
- package/assets/model-extension-mockup.html +105 -105
- package/cordis.patch.yml +3 -3
- package/lib/client.js +2869 -2825
- package/lib/client.js.map +1 -1
- package/lib/index.js +58 -58
- package/package.json +64 -64
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 lovezi0
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 lovezi0
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
# dsh-model-extension
|
|
2
|
-
> 基于 deepseek-harness 的模型扩展插件
|
|
3
|
-
|
|
4
|
-

|
|
5
|
-
|
|
6
|
-
> **作者建议(非AI编写)**
|
|
7
|
-
> 安装该插件或该类型插件:clone仓库源码 -> 执行安全检查/扫描 -> 从源码构建 -> 安装
|
|
8
|
-
|
|
9
|
-
## 功能
|
|
10
|
-
|
|
11
|
-
- 新增「模型+」设置导航(与内置「模型」页并存,互不影响)。
|
|
12
|
-
- 页面标题显示当前适配的 DSH 版本。
|
|
13
|
-
- 模型目录每行展开区新增扩展配置:
|
|
14
|
-
- **推理挡位**(`reasoningEfforts`):声明模型支持的思考档位(off/minimal/low/medium/high/xhigh/max)及线上取值;
|
|
15
|
-
- **输入模态**(`input`):text / image;
|
|
16
|
-
- **兼容性**(`compat`):`supportsReasoningEffort` 开关与 `thinkingFormat` 线制格式。
|
|
17
|
-
- 所有保存走 DSH 原生 `settings.mutate`,落盘 `$DSH_HOME/settings.yaml`。
|
|
18
|
-
|
|
19
|
-
## 安装
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
dsh plugin --profile web add github:lovezi0/dsh-model-extension
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
仓库自带构建产物 `lib/`,安装即用、无需本地构建。
|
|
26
|
-
|
|
27
|
-
也可从 npm 安装(已发布至 npmjs):
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
dsh plugin --profile web add dsh-model-extension
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## 从源码构建
|
|
34
|
-
|
|
35
|
-
构建期需要 DeepSeek Harness 宿主源码(版本须与 `package.json` 的 `dsh.adapter` 锚点一致):
|
|
36
|
-
|
|
37
|
-
1. 获取对应版本的 deepseek-harness 源码 checkout。
|
|
38
|
-
2. 在项目根创建 `build.local.yaml`(已被 gitignore,不会提交):
|
|
39
|
-
|
|
40
|
-
```yaml
|
|
41
|
-
deepseekHarness: <宿主源码绝对路径>
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
3. 构建:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm install
|
|
48
|
-
npm run build
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
锚点与源码树版本不一致时构建会拒绝并提示两边值。
|
|
52
|
-
|
|
53
|
-
## 版本适配
|
|
54
|
-
|
|
55
|
-
插件运行时校验宿主版本与构建锚点严格一致;不一致则不注册并在日志中告警(插件其余部分不受影响)。升级 DSH 后需更新本插件源码适配漂移、修改 `dsh.adapter` 并重新构建。
|
|
56
|
-
|
|
57
|
-
## 版本历史
|
|
58
|
-
|
|
59
|
-
- **0.
|
|
60
|
-
-
|
|
61
|
-
- **0.
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
# dsh-model-extension
|
|
2
|
+
> 基于 deepseek-harness 的模型扩展插件
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
> **作者建议(非AI编写)**
|
|
7
|
+
> 安装该插件或该类型插件:clone仓库源码 -> 执行安全检查/扫描 -> 从源码构建 -> 安装
|
|
8
|
+
|
|
9
|
+
## 功能
|
|
10
|
+
|
|
11
|
+
- 新增「模型+」设置导航(与内置「模型」页并存,互不影响)。
|
|
12
|
+
- 页面标题显示当前适配的 DSH 版本。
|
|
13
|
+
- 模型目录每行展开区新增扩展配置:
|
|
14
|
+
- **推理挡位**(`reasoningEfforts`):声明模型支持的思考档位(off/minimal/low/medium/high/xhigh/max)及线上取值;
|
|
15
|
+
- **输入模态**(`input`):text / image;
|
|
16
|
+
- **兼容性**(`compat`):`supportsReasoningEffort` 开关与 `thinkingFormat` 线制格式。
|
|
17
|
+
- 所有保存走 DSH 原生 `settings.mutate`,落盘 `$DSH_HOME/settings.yaml`。
|
|
18
|
+
|
|
19
|
+
## 安装
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
dsh plugin --profile web add github:lovezi0/dsh-model-extension
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
仓库自带构建产物 `lib/`,安装即用、无需本地构建。
|
|
26
|
+
|
|
27
|
+
也可从 npm 安装(已发布至 npmjs):
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
dsh plugin --profile web add dsh-model-extension
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 从源码构建
|
|
34
|
+
|
|
35
|
+
构建期需要 DeepSeek Harness 宿主源码(版本须与 `package.json` 的 `dsh.adapter` 锚点一致):
|
|
36
|
+
|
|
37
|
+
1. 获取对应版本的 deepseek-harness 源码 checkout。
|
|
38
|
+
2. 在项目根创建 `build.local.yaml`(已被 gitignore,不会提交):
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
deepseekHarness: <宿主源码绝对路径>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
3. 构建:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install
|
|
48
|
+
npm run build
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
锚点与源码树版本不一致时构建会拒绝并提示两边值。
|
|
52
|
+
|
|
53
|
+
## 版本适配
|
|
54
|
+
|
|
55
|
+
插件运行时校验宿主版本与构建锚点严格一致;不一致则不注册并在日志中告警(插件其余部分不受影响)。升级 DSH 后需更新本插件源码适配漂移、修改 `dsh.adapter` 并重新构建。
|
|
56
|
+
|
|
57
|
+
## 版本历史
|
|
58
|
+
|
|
59
|
+
- **0.3.1**
|
|
60
|
+
- 原0.2.0发布
|
|
61
|
+
- **0.2.0**
|
|
62
|
+
- 🔥新增允许以 developer 角色发送系统提示
|
|
63
|
+
- **0.2.0**
|
|
64
|
+
- 🔥新增允许以 developer 角色发送系统提示
|
|
65
|
+
- **0.1.1**
|
|
66
|
+
- 🐛修复peer范围bug
|
|
67
|
+
- **0.1.0**
|
|
68
|
+
- 🔥新增[模型+]开启dsh隐藏设置
|
|
69
|
+
|
|
70
|
+
## 许可
|
|
71
|
+
|
|
72
|
+
MIT。包含自 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)(MIT)官方插件的派生代码。
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>模型扩展字段 · 新排版效果图(移除默认挡位后)</title>
|
|
7
|
-
<style>
|
|
8
|
-
:root {
|
|
9
|
-
--font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
10
|
-
--color-text-primary: #1a1a1a;
|
|
11
|
-
--color-text-secondary: #666;
|
|
12
|
-
--color-text-tertiary: #999;
|
|
13
|
-
--color-background-primary: #fff;
|
|
14
|
-
--color-background-secondary: #f5f5f5;
|
|
15
|
-
--color-border-tertiary: rgba(0, 0, 0, 0.15);
|
|
16
|
-
--border-radius-md: 8px;
|
|
17
|
-
--border-radius-lg: 12px;
|
|
18
|
-
--dsw-alias-brand-primary: #4f46e5;
|
|
19
|
-
}
|
|
20
|
-
body { margin: 0; padding: 32px; background: #fafafa; }
|
|
21
|
-
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
|
|
22
|
-
</style>
|
|
23
|
-
</head>
|
|
24
|
-
<body>
|
|
25
|
-
|
|
26
|
-
<div style="max-width: 680px; font-family: var(--font-sans); color: var(--color-text-primary);">
|
|
27
|
-
<h2 class="sr-only" style="">模型扩展字段新排版效果图:总开关、推理挡位表格、思考格式与输入模态四个分区(默认思考挡位控件已移除)</h2>
|
|
28
|
-
|
|
29
|
-
<div style="background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 16px 18px;">
|
|
30
|
-
|
|
31
|
-
<div style="font-size: 13px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 2px;">模型扩展</div>
|
|
32
|
-
<div style="font-size: 12px; color: var(--color-text-tertiary); margin-bottom: 14px;">展开「容量」区后的扩展字段,新排版(共四个分区)</div>
|
|
33
|
-
|
|
34
|
-
<div style="display: flex; flex-direction: column; gap: 14px;">
|
|
35
|
-
|
|
36
|
-
<!-- 分区① 总开关 -->
|
|
37
|
-
<div style="border-top: 0.5px solid var(--color-border-tertiary); padding-top: 12px;">
|
|
38
|
-
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
|
|
39
|
-
<input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" />
|
|
40
|
-
<span style="font-size: 13px;">端点接受推理挡位参数</span>
|
|
41
|
-
</label>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<!-- 分区②~④ 受总开关门控,一处平铺 -->
|
|
45
|
-
<div style="display: flex; flex-direction: column; gap: 14px;">
|
|
46
|
-
|
|
47
|
-
<!-- 分区② 推理挡位表格 -->
|
|
48
|
-
<div>
|
|
49
|
-
<div style="font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px;">推理挡位(勾选即声明,线上取值可改)</div>
|
|
50
|
-
<div style="border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-md); overflow: hidden;">
|
|
51
|
-
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; font-size: 12px; color: var(--color-text-secondary); background: var(--color-background-secondary);">
|
|
52
|
-
<div style="padding: 6px 10px;">声明</div>
|
|
53
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">挡位</div>
|
|
54
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">线上取值</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
57
|
-
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
58
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">关闭 (off)</div>
|
|
59
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary); color: var(--color-text-tertiary); font-size: 12px;">—(无取值)</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
62
|
-
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
63
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">低 (low)</div>
|
|
64
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);"><input type="text" value="low" style="width:100%;padding:3px 6px;border:0.5px solid var(--color-border-tertiary);border-radius:4px;" /></div>
|
|
65
|
-
</div>
|
|
66
|
-
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
67
|
-
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
68
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">中 (medium)</div>
|
|
69
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);"><input type="text" value="medium" style="width:100%;padding:3px 6px;border:0.5px solid var(--color-border-tertiary);border-radius:4px;" /></div>
|
|
70
|
-
</div>
|
|
71
|
-
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
72
|
-
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
73
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">高 (high)</div>
|
|
74
|
-
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);"><input type="text" value="high" style="width:100%;padding:3px 6px;border:0.5px solid var(--color-border-tertiary);border-radius:4px;" /></div>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
<!-- 分区③ 思考格式 -->
|
|
80
|
-
<div>
|
|
81
|
-
<div style="font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px;">思考格式</div>
|
|
82
|
-
<select style="width: 100%; padding: 6px 8px; border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-md); font-size: 13px;">
|
|
83
|
-
<option>openai</option>
|
|
84
|
-
</select>
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
<!-- 分区④ 输入模态 -->
|
|
88
|
-
<div>
|
|
89
|
-
<div style="font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px;">输入模态</div>
|
|
90
|
-
<label style="display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-size: 13px; cursor: pointer;">
|
|
91
|
-
<input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" />文本
|
|
92
|
-
</label>
|
|
93
|
-
<label style="display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;">
|
|
94
|
-
<input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" />图像
|
|
95
|
-
</label>
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
</div><!-- /门控子区 -->
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
</body>
|
|
105
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>模型扩展字段 · 新排版效果图(移除默认挡位后)</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
10
|
+
--color-text-primary: #1a1a1a;
|
|
11
|
+
--color-text-secondary: #666;
|
|
12
|
+
--color-text-tertiary: #999;
|
|
13
|
+
--color-background-primary: #fff;
|
|
14
|
+
--color-background-secondary: #f5f5f5;
|
|
15
|
+
--color-border-tertiary: rgba(0, 0, 0, 0.15);
|
|
16
|
+
--border-radius-md: 8px;
|
|
17
|
+
--border-radius-lg: 12px;
|
|
18
|
+
--dsw-alias-brand-primary: #4f46e5;
|
|
19
|
+
}
|
|
20
|
+
body { margin: 0; padding: 32px; background: #fafafa; }
|
|
21
|
+
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
|
|
22
|
+
</style>
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
|
|
26
|
+
<div style="max-width: 680px; font-family: var(--font-sans); color: var(--color-text-primary);">
|
|
27
|
+
<h2 class="sr-only" style="">模型扩展字段新排版效果图:总开关、推理挡位表格、思考格式与输入模态四个分区(默认思考挡位控件已移除)</h2>
|
|
28
|
+
|
|
29
|
+
<div style="background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 16px 18px;">
|
|
30
|
+
|
|
31
|
+
<div style="font-size: 13px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 2px;">模型扩展</div>
|
|
32
|
+
<div style="font-size: 12px; color: var(--color-text-tertiary); margin-bottom: 14px;">展开「容量」区后的扩展字段,新排版(共四个分区)</div>
|
|
33
|
+
|
|
34
|
+
<div style="display: flex; flex-direction: column; gap: 14px;">
|
|
35
|
+
|
|
36
|
+
<!-- 分区① 总开关 -->
|
|
37
|
+
<div style="border-top: 0.5px solid var(--color-border-tertiary); padding-top: 12px;">
|
|
38
|
+
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
|
|
39
|
+
<input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" />
|
|
40
|
+
<span style="font-size: 13px;">端点接受推理挡位参数</span>
|
|
41
|
+
</label>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<!-- 分区②~④ 受总开关门控,一处平铺 -->
|
|
45
|
+
<div style="display: flex; flex-direction: column; gap: 14px;">
|
|
46
|
+
|
|
47
|
+
<!-- 分区② 推理挡位表格 -->
|
|
48
|
+
<div>
|
|
49
|
+
<div style="font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px;">推理挡位(勾选即声明,线上取值可改)</div>
|
|
50
|
+
<div style="border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-md); overflow: hidden;">
|
|
51
|
+
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; font-size: 12px; color: var(--color-text-secondary); background: var(--color-background-secondary);">
|
|
52
|
+
<div style="padding: 6px 10px;">声明</div>
|
|
53
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">挡位</div>
|
|
54
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">线上取值</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
57
|
+
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
58
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">关闭 (off)</div>
|
|
59
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary); color: var(--color-text-tertiary); font-size: 12px;">—(无取值)</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
62
|
+
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
63
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">低 (low)</div>
|
|
64
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);"><input type="text" value="low" style="width:100%;padding:3px 6px;border:0.5px solid var(--color-border-tertiary);border-radius:4px;" /></div>
|
|
65
|
+
</div>
|
|
66
|
+
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
67
|
+
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
68
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">中 (medium)</div>
|
|
69
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);"><input type="text" value="medium" style="width:100%;padding:3px 6px;border:0.5px solid var(--color-border-tertiary);border-radius:4px;" /></div>
|
|
70
|
+
</div>
|
|
71
|
+
<div style="display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; font-size: 13px; border-top: 0.5px solid var(--color-border-tertiary);">
|
|
72
|
+
<div style="padding: 6px 10px;"><input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" /></div>
|
|
73
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);">高 (high)</div>
|
|
74
|
+
<div style="padding: 6px 10px; border-left: 0.5px solid var(--color-border-tertiary);"><input type="text" value="high" style="width:100%;padding:3px 6px;border:0.5px solid var(--color-border-tertiary);border-radius:4px;" /></div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<!-- 分区③ 思考格式 -->
|
|
80
|
+
<div>
|
|
81
|
+
<div style="font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px;">思考格式</div>
|
|
82
|
+
<select style="width: 100%; padding: 6px 8px; border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-md); font-size: 13px;">
|
|
83
|
+
<option>openai</option>
|
|
84
|
+
</select>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<!-- 分区④ 输入模态 -->
|
|
88
|
+
<div>
|
|
89
|
+
<div style="font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px;">输入模态</div>
|
|
90
|
+
<label style="display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-size: 13px; cursor: pointer;">
|
|
91
|
+
<input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" />文本
|
|
92
|
+
</label>
|
|
93
|
+
<label style="display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;">
|
|
94
|
+
<input type="checkbox" checked style="width:15px;height:15px;accent-color:var(--dsw-alias-brand-primary)" />图像
|
|
95
|
+
</label>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
</div><!-- /门控子区 -->
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
</body>
|
|
105
|
+
</html>
|
package/cordis.patch.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
- insert:
|
|
2
|
-
- id: model-extension-row
|
|
3
|
-
name: dsh-model-extension
|
|
1
|
+
- insert:
|
|
2
|
+
- id: model-extension-row
|
|
3
|
+
name: dsh-model-extension
|