feat: v1.4.0 - 五项优化

1. 模型选择: 点击搜索框弹出top5模型,支持搜索过滤
2. 选模型后自动调整参数: ctx_size设为模型默认上下文,n_gpu_layers设为all
   - models表新增 default_ctx 字段,各模型预设上下文值
3. 参数配置新增「已改参数」标签页
   - 放在最右边,绿色样式区别于其他标签
   - 显示所有被修改过(非默认值)的参数
4. 复制按钮移到命令文本框左上角悬空
5. 自然语言默认提示文本可在后台管理中编辑
   - 新增 /api/settings/public 接口
   - 后台系统设置新增 nl_default_text 配置项
This commit is contained in:
2026-07-20 00:05:18 +08:00
parent fb3d7290bf
commit 26d7ee0b66
7 changed files with 150 additions and 83 deletions
+2 -1
View File
@@ -131,6 +131,7 @@
<input type="number" id="model-kv" placeholder="KV Heads">
<input type="number" id="model-hdim" placeholder="Head Dim">
<input type="number" id="model-heads" placeholder="Attention Heads">
<input type="number" id="model-ctx" placeholder="默认上下文" value="0">
<input type="text" id="model-quant" placeholder="量化 (如: Q4_K_M)">
<input type="text" id="model-desc" placeholder="描述">
<input type="number" id="model-order" placeholder="排序" value="0">
@@ -138,7 +139,7 @@
</div>
</div>
<table class="admin-table">
<thead><tr><th>ID</th><th>基模型</th><th>名称</th><th>大小(GB)</th><th>层数</th><th>EMBD</th><th>KV</th><th>HD</th><th>Heads</th><th>量化</th><th>排序</th><th>操作</th></tr></thead>
<thead><tr><th>ID</th><th>基模型</th><th>名称</th><th>大小</th><th>层数</th><th>EMBD</th><th>KV</th><th>HD</th><th>Heads</th><th>默认CTX</th><th>量化</th><th>排序</th><th>操作</th></tr></thead>
<tbody id="model-table-body"></tbody>
</table>
</section>