From 1f8224561bfa917a20f2c602379c4544563822e8 Mon Sep 17 00:00:00 2001 From: hfshfg <38004547@qq.com> Date: Sat, 2 May 2026 18:58:05 +0800 Subject: [PATCH] fix(bootstrap): use "name" instead of "label" for model schema OpenClaw 2026.4.29 renamed the per-model field from "label" to "name". The old field is now an Unrecognized key, which fails schema validation at gateway startup and exits OpenClaw before any HTTP listener binds. Symptom (v2.1.0 first-launch): - models.providers.uclaw-cloud.models.0.name: Invalid input: expected string, received undefined - models.providers.uclaw-cloud.models.0: Unrecognized key: "label" - throwInvalidConfig() at io-DaEsZ_NY.js:2901 -> process exit Found via end-to-end H: drive test of v2.1.0 portable zip. --- portable/lib/bootstrap-xiapan.mjs | 6 +++--- u-claw-app/src/lib/bootstrap-xiapan.mjs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/portable/lib/bootstrap-xiapan.mjs b/portable/lib/bootstrap-xiapan.mjs index 5b32861..942d61c 100644 --- a/portable/lib/bootstrap-xiapan.mjs +++ b/portable/lib/bootstrap-xiapan.mjs @@ -16,9 +16,9 @@ const DEFAULT_PROVIDER_TEMPLATE = { baseUrl: 'https://api.u-claw.org/v1', api: 'openai-completions', models: [ - { id: 'deepseek-chat', label: 'DeepSeek Chat' }, - { id: 'qwen-plus', label: 'Qwen Plus' }, - { id: 'qwen-turbo', label: 'Qwen Turbo' }, + { id: 'deepseek-chat', name: 'DeepSeek Chat' }, + { id: 'qwen-plus', name: 'Qwen Plus' }, + { id: 'qwen-turbo', name: 'Qwen Turbo' }, ], }; diff --git a/u-claw-app/src/lib/bootstrap-xiapan.mjs b/u-claw-app/src/lib/bootstrap-xiapan.mjs index 5b32861..942d61c 100644 --- a/u-claw-app/src/lib/bootstrap-xiapan.mjs +++ b/u-claw-app/src/lib/bootstrap-xiapan.mjs @@ -16,9 +16,9 @@ const DEFAULT_PROVIDER_TEMPLATE = { baseUrl: 'https://api.u-claw.org/v1', api: 'openai-completions', models: [ - { id: 'deepseek-chat', label: 'DeepSeek Chat' }, - { id: 'qwen-plus', label: 'Qwen Plus' }, - { id: 'qwen-turbo', label: 'Qwen Turbo' }, + { id: 'deepseek-chat', name: 'DeepSeek Chat' }, + { id: 'qwen-plus', name: 'Qwen Plus' }, + { id: 'qwen-turbo', name: 'Qwen Turbo' }, ], };