skillmkt 0.3.0 → 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/client/public/app.js +2 -2
- package/package.json +1 -1
package/client/public/app.js
CHANGED
|
@@ -153,12 +153,12 @@ async function render() {
|
|
|
153
153
|
<div id="model-box"><label class="field">模型名称</label>
|
|
154
154
|
<div class="combo"><input type="text" id="mmodel" autocomplete="off" placeholder="可输入关键字搜索,扫描后自动列出发现的模型" value="${esc(cfg.llm?.model || '')}">
|
|
155
155
|
<div class="combo-list" id="model-drop" style="display:none"></div></div></div>
|
|
156
|
-
<div class="row"
|
|
156
|
+
<div class="row end" style="margin-top:14px"><span id="smoke-out" class="mut"></span><button id="smoke">测试连接</button></div></div>
|
|
157
157
|
<div class="card"><h3>第 2 步 · skill 默认安装位置</h3>
|
|
158
158
|
<p class="mut">勾选的 AI 工具会在你安装新 skill 时自动收到一份副本。已勾过的话保存即生效。</p>
|
|
159
159
|
${h.map((x) => `<label class="check"><input type="checkbox" data-h="${esc(x.id)}" ${sel.has(x.id) ? 'checked' : ''} ${x.state === 'absent' ? 'disabled' : ''}> ${esc(x.id)} ${pill(x.state)} <span class="mut">${esc(x.primaryDir || '')}</span></label>`).join('')}</div>
|
|
160
160
|
<div class="card"><h3>第 3 步 · 保存</h3>
|
|
161
|
-
<div class="row
|
|
161
|
+
<div class="row end"><span id="save-out" class="mut"></span><button class="primary" id="save">保存设置</button></div></div>`;
|
|
162
162
|
const modelMap = new Map(); // model → base_url(选中模型自动回填地址)
|
|
163
163
|
const loadedModels = new Map(); // 密钥端点拉到的模型——重扫后保留
|
|
164
164
|
let epsList = [], lastScan = 0;
|