From 9de652bfb5ad1742a635b53c3270feda8279667d Mon Sep 17 00:00:00 2001 From: mmckeen-nv Date: Thu, 30 Apr 2026 10:47:17 -0700 Subject: [PATCH] Default NemoClaw create to vLLM experimental --- app/api/sandbox/create/route.ts | 2 +- tests/sandbox-lifecycle-check.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/sandbox/create/route.ts b/app/api/sandbox/create/route.ts index 4323573..0d4753d 100644 --- a/app/api/sandbox/create/route.ts +++ b/app/api/sandbox/create/route.ts @@ -69,7 +69,7 @@ type CreateInferenceSettings = { function parseCreateInferenceSettings(body: any): CreateInferenceSettings { const raw = body?.createInference && typeof body.createInference === "object" ? body.createInference : {} - const requestedMode = typeof raw.mode === "string" ? raw.mode : "auto" + const requestedMode = typeof raw.mode === "string" ? raw.mode : "vllm" const mode: CreateInferenceMode = requestedMode === "vllm" || requestedMode === "nim" ? requestedMode : "auto" const model = typeof raw.model === "string" ? raw.model.trim() : "" const apiKey = typeof raw.apiKey === "string" ? raw.apiKey.trim() : "" diff --git a/tests/sandbox-lifecycle-check.mjs b/tests/sandbox-lifecycle-check.mjs index 50c642f..7b9d19b 100644 --- a/tests/sandbox-lifecycle-check.mjs +++ b/tests/sandbox-lifecycle-check.mjs @@ -62,6 +62,7 @@ assert.match( assert.match(createRouteSource, /"onboard", "--non-interactive", "--recreate-sandbox"/, 'blueprint create must use the Monday-era normal NemoClaw onboard flow') assert.doesNotMatch(createRouteSource, /"--from"|resolvePreferredNemoClawDockerfile|prepareDashboardOwnedNemoClawDockerfile/, 'blueprint create must not force the explicit Dockerfile path') assert.match(createRouteSource, /NEMOCLAW_SANDBOX_NAME: sandboxName/, 'blueprint create must pass the requested sandbox name to NemoClaw onboarding') +assert.match(createRouteSource, /const requestedMode = typeof raw\.mode === "string" \? raw\.mode : "vllm"/, 'blueprint create must default to vLLM experimental onboarding when the UI payload is absent') assert.match(createRouteSource, /NEMOCLAW_EXPERIMENTAL = "1"/, 'blueprint create must support NemoClaw experimental provider onboarding') assert.match(createRouteSource, /NEMOCLAW_PROVIDER = "vllm"/, 'blueprint create must support the vLLM onboarding provider') assert.match(createRouteSource, /NEMOCLAW_PROVIDER = "nim-local"/, 'blueprint create must support the NVIDIA NIM onboarding provider')