yymaxapi 1.0.109 → 1.0.110
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/README.md
CHANGED
|
@@ -46,13 +46,13 @@ set OPENCLAW_CODEX_KEY=你的Key && npx yymaxapi@latest preset-codex
|
|
|
46
46
|
**方式四:完全自动化(无交互)**
|
|
47
47
|
```bash
|
|
48
48
|
# macOS/Linux
|
|
49
|
-
OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude --model claude-opus-4-
|
|
49
|
+
OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
|
|
50
50
|
|
|
51
51
|
# Windows PowerShell
|
|
52
|
-
$env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude --model claude-opus-4-
|
|
52
|
+
$env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
|
|
53
53
|
|
|
54
54
|
# Windows CMD
|
|
55
|
-
set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude --model claude-opus-4-
|
|
55
|
+
set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
|
|
56
56
|
|
|
57
57
|
# macOS/Linux
|
|
58
58
|
OPENCLAW_CODEX_KEY="你的Key" npx yymaxapi@latest preset-codex --model gpt-5.4 --set-primary true --force --test true
|
package/bin/yymaxapi.js
CHANGED
|
@@ -107,12 +107,12 @@ const DEFAULT_CLAUDE_MODELS = [
|
|
|
107
107
|
"name": "Claude Sonnet 4.6"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"id": "claude-opus-4-
|
|
111
|
-
"name": "Claude Opus 4.
|
|
110
|
+
"id": "claude-opus-4-7",
|
|
111
|
+
"name": "Claude Opus 4.7"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
"id": "claude-
|
|
115
|
-
"name": "Claude
|
|
114
|
+
"id": "claude-haiku-4-5",
|
|
115
|
+
"name": "Claude Haiku 4.5"
|
|
116
116
|
}
|
|
117
117
|
];
|
|
118
118
|
|
|
@@ -2207,13 +2207,13 @@ const YYMAXAPI_OPENCLAW_ALT_CLAUDE_AGENT_ID = 'yunyi-claude';
|
|
|
2207
2207
|
const YYMAXAPI_OPENCLAW_GPT_AGENT_ID = 'yunyi-gpt';
|
|
2208
2208
|
const YYMAXAPI_OPENCLAW_LEGACY_GPT_AGENT_IDS = ['gpt'];
|
|
2209
2209
|
const YYMAXAPI_OPENCLAW_CLAUDE_PRIMARY = `${YYMAXAPI_OPENCLAW_CLAUDE_PROVIDER}/claude-sonnet-4-6`;
|
|
2210
|
-
const YYMAXAPI_OPENCLAW_CLAUDE_FALLBACK = `${YYMAXAPI_OPENCLAW_CLAUDE_PROVIDER}/claude-opus-4-
|
|
2210
|
+
const YYMAXAPI_OPENCLAW_CLAUDE_FALLBACK = `${YYMAXAPI_OPENCLAW_CLAUDE_PROVIDER}/claude-opus-4-7`;
|
|
2211
2211
|
const YYMAXAPI_OPENCLAW_GPT_PRIMARY = `${YYMAXAPI_OPENCLAW_GPT_PROVIDER}/gpt-5.4`;
|
|
2212
2212
|
const YYMAXAPI_OPENCLAW_GPT_FALLBACK = `${YYMAXAPI_OPENCLAW_GPT_PROVIDER}/gpt-5.3-codex`;
|
|
2213
2213
|
const YYMAXAPI_MANAGED_MAIN_NAMES = new Set(['Claude', 'claude', 'yunyi-claude', 'claude-yunyi']);
|
|
2214
2214
|
const YYMAXAPI_MANAGED_GPT_NAMES = new Set(['GPT', 'Codex', 'gpt', 'yunyi-gpt', 'yunyi-codex']);
|
|
2215
2215
|
const YYMAXAPI_MANAGED_MULTIMODAL_MODELS = {
|
|
2216
|
-
claude: new Set(['claude-sonnet-4-6', 'claude-opus-4-
|
|
2216
|
+
claude: new Set(['claude-sonnet-4-6', 'claude-opus-4-7', 'claude-haiku-4-5']),
|
|
2217
2217
|
codex: new Set(['gpt-5.4', 'gpt-5.3-codex'])
|
|
2218
2218
|
};
|
|
2219
2219
|
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"models": {
|
|
26
26
|
"claude": [
|
|
27
27
|
{ "id": "claude-sonnet-4-6", "name": "Claude Sonnet 4.6" },
|
|
28
|
-
{ "id": "claude-opus-4-
|
|
29
|
-
{ "id": "claude-
|
|
28
|
+
{ "id": "claude-opus-4-7", "name": "Claude Opus 4.7" },
|
|
29
|
+
{ "id": "claude-haiku-4-5", "name": "Claude Haiku 4.5" }
|
|
30
30
|
],
|
|
31
31
|
"codex": [
|
|
32
32
|
{ "id": "gpt-5.4", "name": "GPT 5.4" },
|
|
@@ -104,7 +104,7 @@ npx yymaxapi@latest
|
|
|
104
104
|
|
|
105
105
|
**注意事项:**
|
|
106
106
|
- `base_url` 不要加 `/v1`,平台会自动拼接路径
|
|
107
|
-
- Claude 可用模型:`claude-sonnet-4-6`、`claude-opus-4-
|
|
107
|
+
- Claude 可用模型:`claude-sonnet-4-6`、`claude-opus-4-7`、`claude-haiku-4-5`
|
|
108
108
|
- GPT 可用模型:`gpt-5.4`
|
|
109
109
|
- 已验证环境:腾讯云 OpenCloudOS,OpenClaw `2026.2.3-1`
|
|
110
110
|
- 参考文档:https://cloud.tencent.com/developer/article/2624003
|