yymaxapi 1.0.61 → 1.0.62
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/bin/yymaxapi.js +3 -5
- package/package.json +1 -1
package/bin/yymaxapi.js
CHANGED
|
@@ -3580,7 +3580,6 @@ async function switchModel(paths) {
|
|
|
3580
3580
|
}
|
|
3581
3581
|
|
|
3582
3582
|
const gwPort = config.gateway?.port || 18789;
|
|
3583
|
-
const gwToken = config.gateway?.auth?.token;
|
|
3584
3583
|
|
|
3585
3584
|
if (await isPortOpen(gwPort)) {
|
|
3586
3585
|
const gwSpinner = ora({ text: '重启 Gateway 使模型切换生效...', spinner: 'dots' }).start();
|
|
@@ -3595,10 +3594,9 @@ async function switchModel(paths) {
|
|
|
3595
3594
|
console.log(chalk.gray(' 启动 Gateway: openclaw gateway'));
|
|
3596
3595
|
}
|
|
3597
3596
|
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
}
|
|
3597
|
+
// 重启后直接测试连接
|
|
3598
|
+
console.log('');
|
|
3599
|
+
await testConnection(paths, {});
|
|
3602
3600
|
}
|
|
3603
3601
|
// ============ 权限管理 (tools.profile) ============
|
|
3604
3602
|
const TOOLS_PROFILES = [
|