Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(scripts): pass routing parameters to inference agent calls

Steven Enamakelf695e8019676
diff --git a/scripts/life-scenarios/run.mjs b/scripts/life-scenarios/run.mjs
index e7fd291829..5ce1d0a941 100644
--- a/scripts/life-scenarios/run.mjs
+++ b/scripts/life-scenarios/run.mjs
@@ -366,7 +366,7 @@ async function runScenario({ core, scenario, runDir, opts, attempt }) {
message: scenario.prompt,
thread_id: threadId,
cwd: sandbox,
- ...(opts.model ? { model_override: opts.model } : {}),
+ ...routeParams(opts),
},
opts.turnTimeoutMs,
);
@@ -524,7 +524,11 @@ async function main() {
const smokeStart = Date.now();
const smoke = await core.rpc(
"openhuman.inference_agent_chat",
- { message: "Reply with exactly: READY", thread_id: `ls-smoke-${runId}` },
+ {
+ message: "Reply with exactly: READY",
+ thread_id: `ls-smoke-${runId}`,
+ ...routeParams(opts),
+ },
120_000,
);
console.log(