dsh-livebench-panel 0.2.23 → 0.2.24
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/lib/index.js +13 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1132,6 +1132,19 @@ function apply(ctx) {
|
|
|
1132
1132
|
// livebench import (shortuuid etc.).
|
|
1133
1133
|
PATH: `${join(layout.root, ".venv", "Scripts")}${delimiter}${process.env.PATH ?? ""}`,
|
|
1134
1134
|
};
|
|
1135
|
+
// 丢掉从 dsh web 进程继承来的虚拟环境标记。
|
|
1136
|
+
//
|
|
1137
|
+
// run_livebench.py 会读 VIRTUAL_ENV 并执行 `source <VIRTUAL_ENV>/bin/activate`:
|
|
1138
|
+
// 那是 Unix 路径 + Unix 语法,Windows 上必然失败;更糟的是它接着用写死的 ':'
|
|
1139
|
+
// 去拼 PATH,把上面刚前置好的 venv Scripts 条目粘成无效路径,于是后面裸调的
|
|
1140
|
+
// `python` 回退到系统/conda 解释器,报 `No module named 'shortuuid'`。
|
|
1141
|
+
//
|
|
1142
|
+
// 本机常见触发场景:dsh web 是从一个 conda 已激活的终端启动的(例如
|
|
1143
|
+
// VIRTUAL_ENV=D:\...\Anaconda3\envs\mineru)。面板自己已经把正确的 venv 放在
|
|
1144
|
+
// PATH 最前,不需要任何 activate,所以这里直接删掉这两个标记。
|
|
1145
|
+
delete env.VIRTUAL_ENV;
|
|
1146
|
+
delete env.CONDA_PREFIX;
|
|
1147
|
+
delete env.CONDA_DEFAULT_ENV;
|
|
1135
1148
|
// Provider routing: keys are resolved through the harness credential seam
|
|
1136
1149
|
// when available (values may live encrypted in .credentials.yaml rather
|
|
1137
1150
|
// than in the process env), falling back to the plain environment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-livebench-panel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
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. Ships a Baseline probe set built from the questions a reference model cannot solve.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "cszr (Vithrive)",
|