@aiyiran/myclaw 1.0.56 → 1.0.58
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 +9 -0
- package/package.json +1 -1
package/inject-minimax.js
CHANGED
|
@@ -124,6 +124,15 @@ function run(cliArgs) {
|
|
|
124
124
|
'--minimax-api-key "' + apiKey + '"',
|
|
125
125
|
].join(' '), { stdio: 'inherit' });
|
|
126
126
|
console.log('✅ API Key 已通过 onboard 设置');
|
|
127
|
+
|
|
128
|
+
// 再次验证
|
|
129
|
+
const reVerify = JSON.parse(fs.readFileSync(targetPath, 'utf8'));
|
|
130
|
+
const finalModelId = reVerify.models?.providers?.minimax?.models?.[0]?.id || '???';
|
|
131
|
+
const finalDefault = reVerify.agents?.defaults?.model?.primary || '???';
|
|
132
|
+
|
|
133
|
+
if (finalModelId !== "MiniMax-M2.7-highspeed") {
|
|
134
|
+
console.log('⚠️ [警告] onboard 命令覆盖了你配置的模型 ID: ' + finalModelId);
|
|
135
|
+
}
|
|
127
136
|
} catch (err) {
|
|
128
137
|
console.log('⚠️ onboard 失败: ' + err.message);
|
|
129
138
|
}
|