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
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
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-
|
|
82
|
-
"name": "Claude
|
|
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
|
|
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
|