feat: v1.2.0 - 三项优化

1. 模型选择改为两步式:先搜索选择基模型,再选择量化版本
   - 自动选中默认量化版本(Q4_K_M),后台可配置
   - 模型新增 base_model 字段,按基模型分组
   - 后台模型管理增加基模型字段

2. 参数搜索改为全局搜索
   - 搜索时跨所有分类显示匹配参数
   - 隐藏分类标签页,显示匹配数量

3. 自然语言支持 LLM 接口
   - 后台可配置 LLM API (URL/Key/Model/System Prompt)
   - 启用后优先调用 LLM 解析,失败自动回退正则解析
   - 兼容 OpenAI API 格式
This commit is contained in:
2026-07-19 22:57:38 +08:00
parent a115c5f7b4
commit 6691f37e45
7 changed files with 363 additions and 378 deletions
+24 -3
View File
@@ -177,7 +177,10 @@ header h1 {
.vram-breakdown { margin-top: 10px; font-size: 0.85em; color: var(--text-dim); display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.vram-breakdown .breakdown-item { display: flex; justify-content: space-between; padding: 4px 8px; background: var(--bg); border-radius: 4px; }
/* ===== Model Selection ===== */
/* ===== Model Selection (two-step) ===== */
.model-step { margin-bottom: 12px; }
.model-step.hidden { display: none; }
.model-step-label { display: block; font-size: 0.85em; color: var(--text-dim); margin-bottom: 6px; }
.model-select-container { position: relative; }
.model-select-container input {
width: 100%;
@@ -215,8 +218,18 @@ header h1 {
.model-name { font-size: 0.9em; }
.model-meta { font-size: 0.8em; color: var(--text-dim); }
.quant-btn {
display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
padding: 8px 16px; background: var(--bg-input); border: 1px solid var(--border);
color: var(--text); border-radius: var(--radius); cursor: pointer; font-size: 0.85em; margin-right: 8px; margin-bottom: 8px; transition: all 0.15s;
}
.quant-btn:hover { border-color: var(--accent2); }
.quant-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.quant-size { font-size: 0.75em; color: var(--text-dim); }
.quant-btn.active .quant-size { color: rgba(255,255,255,0.8); }
.model-selected-info { margin-top: 12px; }
.model-detail { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85em; }
.model-detail { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85em; }
.detail-item { background: var(--bg-input); padding: 4px 10px; border-radius: 4px; }
.detail-item b { color: var(--accent2); }
@@ -235,7 +248,7 @@ header h1 {
.tab-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
/* ===== Param Search ===== */
.param-search-container { margin-bottom: 12px; }
.param-search-container { margin-bottom: 12px; position: relative; }
.param-search-container input {
width: 100%;
background: var(--bg-input);
@@ -246,6 +259,14 @@ header h1 {
font-size: 0.9em;
}
.param-search-container input:focus { outline: none; border-color: var(--accent); }
.search-hint { font-size: 0.8em; color: var(--text-dim); margin-left: 8px; }
/* ===== Settings (wide textarea) ===== */
.settings-form .setting-item-wide { grid-column: 1 / -1; }
.settings-form textarea {
background: var(--bg-input); border: 1px solid var(--border); color: var(--text);
padding: 8px 12px; border-radius: var(--radius); font-size: 0.85em; resize: vertical; width: 100%; font-family: inherit;
}
/* ===== Parameter Items (one per line) ===== */
#param-container { display: flex; flex-direction: column; gap: 6px; }