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

This commit is contained in:
huanghuoguoguo
2026-07-12 20:36:32 +08:00
parent 9aa71d54e3
commit d88d05e27c
170 changed files with 6952 additions and 5381 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;
}