feat(agent-runner): enforce 4.x host-owned execution

This commit is contained in:
huanghuoguoguo
2026-07-12 20:36:32 +08:00
parent e6384aae5d
commit 99d9c227f9
171 changed files with 6958 additions and 5385 deletions
@@ -522,7 +522,6 @@ async function ensurePipeline({ backendUrl, token, name, modelUuid }) {
prompt: [{ role: "system", content: "You are a deterministic QA assistant. Reply exactly as instructed." }],
"remove-think": false,
"knowledge-bases": [],
"box-session-id-template": "{launcher_type}_{launcher_id}",
"retrieval-top-k": 5,
"rerank-model": "",
"rerank-top-k": 5,
+3 -1
View File
@@ -112,7 +112,9 @@ function parseJsonEnv(key, fallback) {
}
function positiveNumberEnv(key, fallback) {
const value = Number(env[key] || "");
const raw = env[key];
if (raw === undefined || raw === "") return fallback;
const value = Number(raw);
return Number.isFinite(value) && value >= 0 ? value : fallback;
}