yymaxapi 1.0.61 → 1.0.63

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 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
- if (gwToken) {
3599
- console.log(chalk.green(`\n🌐 Web Dashboard:`));
3600
- console.log(chalk.cyan(` http://127.0.0.1:${gwPort}/?token=${gwToken}`));
3601
- }
3597
+ // 重启后直接测试连接
3598
+ console.log('');
3599
+ await testConnection(paths, {});
3602
3600
  }
3603
3601
  // ============ 权限管理 (tools.profile) ============
3604
3602
  const TOOLS_PROFILES = [
@@ -71,6 +71,8 @@ npx yymaxapi@latest
71
71
 
72
72
  在腾讯云 OpenClaw 部署中,使用「自定义模型」接入云翼中转,已验证可用的配置:
73
73
 
74
+ ### Claude Sonnet 4.6
75
+
74
76
  ```json
75
77
  {
76
78
  "provider": "anthropic",
@@ -78,14 +80,30 @@ npx yymaxapi@latest
78
80
  "api": "anthropic-messages",
79
81
  "api_key": "<你的云翼 API Key>",
80
82
  "model": {
81
- "id": "claude-opus-4-6",
82
- "name": "Claude Opus 4.6"
83
+ "id": "claude-sonnet-4-6",
84
+ "name": "Claude Sonnet 4.6"
85
+ }
86
+ }
87
+ ```
88
+
89
+ ### GPT 5.4
90
+
91
+ ```json
92
+ {
93
+ "provider": "openai",
94
+ "base_url": "https://yunyi.rdzhvip.com/codex",
95
+ "api": "openai-responses",
96
+ "api_key": "<你的云翼 API Key>",
97
+ "model": {
98
+ "id": "gpt-5.4",
99
+ "name": "GPT 5.4"
83
100
  }
84
101
  }
85
102
  ```
86
103
 
87
104
  **注意事项:**
88
- - `base_url` 不要加 `/v1`,平台会自动拼接 `/v1/messages`
89
- - 可用模型:`claude-sonnet-4-6`、`claude-opus-4-6`
105
+ - `base_url` 不要加 `/v1`,平台会自动拼接路径
106
+ - Claude 可用模型:`claude-sonnet-4-6`、`claude-opus-4-6`
107
+ - GPT 可用模型:`gpt-5.4`
90
108
  - 已验证环境:腾讯云 OpenCloudOS,OpenClaw `2026.2.3-1`
91
109
  - 参考文档:https://cloud.tencent.com/developer/article/2624003
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymaxapi",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化",
5
5
  "main": "bin/yymaxapi.js",
6
6
  "bin": {