fix(openclaw): initialize gateway.mode to local in setup config injection

This commit is contained in:
Haitao Pan 2026-06-17 09:38:23 +08:00
parent 6922e18115
commit d49e0f784e

View File

@ -1936,6 +1936,7 @@ if (fs.existsSync(file)) {
}
if (!config.models) config.models = { mode: 'merge', providers: {} };
if (!config.models.providers) config.models.providers = {};
if (!config.gateway) config.gateway = { mode: 'local' };
const authToken = fs.readFileSync('$config_dir/auth-token', 'utf8').trim();
config.models.providers.litellm = {
api: 'openai-completions',