@aiyiran/myclaw 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/inject-minimax.js +8 -3
- package/package.json +1 -1
package/inject-minimax.js
CHANGED
|
@@ -97,11 +97,16 @@ function run(cliArgs) {
|
|
|
97
97
|
// 写回文件
|
|
98
98
|
fs.writeFileSync(targetPath, JSON.stringify(config, null, 2) + '\n', 'utf8');
|
|
99
99
|
|
|
100
|
+
// 验证写入
|
|
101
|
+
const verify = JSON.parse(fs.readFileSync(targetPath, 'utf8'));
|
|
102
|
+
const writtenModelId = verify.models?.providers?.minimax?.models?.[0]?.id || '???';
|
|
103
|
+
const writtenDefault = verify.agents?.defaults?.model?.primary || '???';
|
|
104
|
+
|
|
100
105
|
console.log('✅ MiniMax 模型配置已注入');
|
|
101
106
|
console.log('');
|
|
102
|
-
console.log('
|
|
103
|
-
console.log('
|
|
104
|
-
console.log('
|
|
107
|
+
console.log(' [验证] 写入的 model ID: ' + writtenModelId);
|
|
108
|
+
console.log(' [验证] 写入的 default: ' + writtenDefault);
|
|
109
|
+
console.log(' [验证] 文件路径: ' + targetPath);
|
|
105
110
|
|
|
106
111
|
// 4. 通过 openclaw onboard 设置 API Key
|
|
107
112
|
if (apiKey) {
|