+9
-6
@@ -76,4 +76,5 @@ #!/usr/bin/env node | ||
| config.models.mode = 'merge'; | ||
| config.models.providers['openai'] = { | ||
| // 使用自定义 provider 名称,避免触发 OpenClaw 对内置 openai 账号的格式校验 | ||
| if (!config.models.mode) config.models.mode = 'merge'; | ||
| config.models.providers[PROVIDER_NAME] = { | ||
| baseUrl: ENDPOINT, | ||
@@ -90,6 +91,8 @@ auth: apiKey.trim(), | ||
| const modelKey = `openai/${MODEL_ID}`; | ||
| config.agents.defaults.models[modelKey] = { alias: 'openai' }; | ||
| config.agents.defaults.model.primary = modelKey; | ||
| config.agents.defaults.model.fallbacks = []; | ||
| // 注册到 agents.defaults.models,便于 OpenClaw 识别与切换 | ||
| const modelKey = `${PROVIDER_NAME}/${MODEL_ID}`; | ||
| config.agents.defaults.models[modelKey] = { alias: PROVIDER_NAME }; | ||
| if (!config.agents.defaults.model.primary) { | ||
| config.agents.defaults.model.primary = modelKey; | ||
| } | ||
@@ -96,0 +99,0 @@ writeJson(paths.configPath, config); |
+1
-1
| { | ||
| "name": "mxosapi", | ||
| "version": "1.3.0", | ||
| "version": "1.3.1", | ||
| "description": "MAXAPI 一键配置工具 — 快速配置 OpenClaw/Claude Code/Codex", | ||
@@ -5,0 +5,0 @@ "main": "bin/mxosapi.js", |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
15297
1.48%274
1.11%