From 125a2ab7de5bfb6bc716d51be0013498d84d86da Mon Sep 17 00:00:00 2001 From: BigCode Date: Thu, 29 Oct 2026 18:16:15 +0800 Subject: [PATCH] =?UTF-8?q?tools:=20serp=20=E9=80=9F=E7=8E=87-=E9=97=A8?= =?UTF-8?q?=E5=A3=B3=E5=AE=9E=E9=AA=8C/24h=20=E7=9B=91=E6=8E=A7/sorry=20?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=8E=A2=E6=B5=8B=E5=99=A8(=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=8C=96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stress/serp-recovery-probe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stress/serp-recovery-probe.ts b/stress/serp-recovery-probe.ts index 13cf4fc..58a9362 100644 --- a/stress/serp-recovery-probe.ts +++ b/stress/serp-recovery-probe.ts @@ -14,8 +14,8 @@ if (!TOKEN) { console.error("缺少 SERP_TOKEN"); process.exit(1); } const DATA = new URL("./data/", import.meta.url).pathname; fs.mkdirSync(DATA, { recursive: true }); const JSONL = `${DATA}recovery-probe.jsonl`; -const INTERVAL_MIN = 15; -const N = 5; +const INTERVAL_MIN = Number(process.env.PROBE_INTERVAL_MIN ?? 15); +const N = Number(process.env.PROBE_N ?? 5); const QUERIES = ["recovery probe coffee maker", "recovery probe running shoes", "recovery probe laptop stand", "recovery probe rice cooker", "recovery probe desk lamp"]; /** # 函数