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.
This commit is contained in:
@@ -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' },
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@@ -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' },
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user