dsh-livebench-panel 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/lib/client.js +16 -15
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -13,7 +13,8 @@ window.__ModuleLoader__.load({
13
13
  .dlb_head h2{margin:0;font-size:16px;font-weight:600}
14
14
  .dlb_sub{color:var(--dsw-alias-label-tertiary);font-size:12px}
15
15
  .dlb_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:12px}
16
- .dlb_grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
16
+ .dlb_grid{display:grid;grid-template-columns:repeat(12,1fr);gap:10px}
17
+ @media (max-width:860px){.dlb_grid>.dlb_field{grid-column:1/-1 !important}}
17
18
  .dlb_field{display:flex;flex-direction:column;gap:4px;min-width:0}
18
19
  .dlb_label{color:var(--dsw-alias-label-tertiary);font-size:11px;text-transform:uppercase;letter-spacing:.02em}
19
20
  .dlb_select,.dlb_input{height:34px;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;border-radius:8px;padding:0 8px;outline:none;min-width:0}
@@ -387,8 +388,8 @@ window.__ModuleLoader__.load({
387
388
  configError !== null && h("p", { className: c("error") }, `加载配置失败:${configError}`),
388
389
  h("div", { className: c("card") },
389
390
  h("div", { className: c("grid") },
390
- h("div", { className: c("field"), ref: modelDdRef, style: { position: "relative" } },
391
- h("label", { className: c("label") }, "模型(harness 全部模型,可多选)"),
391
+ h("div", { className: c("field"), ref: modelDdRef, style: { gridColumn: "span 6" } },
392
+ h("label", { className: c("label") }, "模型(harness 全部模型,可多选;勾选后可在行内单独设定推理强度)"),
392
393
  h("button", {
393
394
  type: "button", className: c("select"), style: { textAlign: "left", width: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
394
395
  onClick: () => setModelDdOpen((v) => !v),
@@ -439,11 +440,22 @@ window.__ModuleLoader__.load({
439
440
  m.efforts.map((e) => h("option", { key: e, value: e }, e === "off" ? "off(关闭思考)" : e)))));
440
441
  }))),
441
442
  ),
442
- h("div", { className: c("field") },
443
+ h("div", { className: c("field"), style: { gridColumn: "span 2" } },
443
444
  h("label", { className: c("label") }, "题集 release"),
444
445
  h("select", { className: c("select"), value: sel.release, onChange: setField("release") },
445
446
  (config?.releases ?? ["2024-11-25"]).map((r) => h("option", { key: r, value: r }, r))),
446
447
  ),
448
+ h("div", { className: c("field"), style: { gridColumn: "span 2" } },
449
+ h("label", { className: c("label") }, "题目序号范围(可选)"),
450
+ h("div", { className: c("row") },
451
+ h("input", { className: c("input"), type: "number", min: 0, placeholder: "起", value: sel.begin, onChange: setField("begin"), style: { width: "50%" } }),
452
+ h("input", { className: c("input"), type: "number", min: 0, placeholder: "止", value: sel.end, onChange: setField("end"), style: { width: "50%" } }),
453
+ ),
454
+ ),
455
+ h("div", { className: c("field"), style: { gridColumn: "span 2" } },
456
+ h("label", { className: c("label") }, "max-tokens(默认 32000)"),
457
+ h("input", { className: c("input"), type: "number", min: 256, max: 32768, value: sel.maxTokens, onChange: setField("maxTokens") }),
458
+ ),
447
459
  h("div", { className: c("field"), style: { gridColumn: "1 / -1" } },
448
460
  h("label", { className: c("label") }, "分类(可多选,不选 = 全部分类;括号内为该 release 下有效题数)"),
449
461
  h("div", { className: c("chips") },
@@ -470,17 +482,6 @@ window.__ModuleLoader__.load({
470
482
  }, `${task}(${n})`);
471
483
  })),
472
484
  ),
473
- h("div", { className: c("field") },
474
- h("label", { className: c("label") }, "题目序号范围(可选)"),
475
- h("div", { className: c("row") },
476
- h("input", { className: c("input"), type: "number", min: 0, placeholder: "起", value: sel.begin, onChange: setField("begin"), style: { width: "50%" } }),
477
- h("input", { className: c("input"), type: "number", min: 0, placeholder: "止", value: sel.end, onChange: setField("end"), style: { width: "50%" } }),
478
- ),
479
- ),
480
- h("div", { className: c("field") },
481
- h("label", { className: c("label") }, "max-tokens(默认 32000)"),
482
- h("input", { className: c("input"), type: "number", min: 256, max: 32768, value: sel.maxTokens, onChange: setField("maxTokens") }),
483
- ),
484
485
  ),
485
486
  h("div", { className: c("row") },
486
487
  h("button", { className: c("btn"), onClick: onStart, disabled: busy || running || !config?.available || sel.models.length === 0 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-livebench-panel",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "DSH web plugin: a LiveBench tab in the Trajectory view (right of 对话/轨迹). Run LiveBench evaluations against every model configured in the DeepSeek Harness — pick provider/model, category, task, release and question range from dropdowns, watch progress, and read scores in place.",
5
5
  "license": "MIT",
6
6
  "type": "module",