aihezu 2.8.13 → 2.8.14
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/INSTALL_USAGE.md +4 -4
- package/commands/config.js +8 -14
- package/commands/install.js +8 -14
- package/package.json +1 -1
- package/services/codex.js +1 -1
package/INSTALL_USAGE.md
CHANGED
|
@@ -71,8 +71,8 @@ npx aihezu install --provider codex --api hk.aihezu.dev
|
|
|
71
71
|
请输入 API 地址(直接回车使用默认地址):
|
|
72
72
|
|
|
73
73
|
请选择模型:
|
|
74
|
-
[1] gpt-5
|
|
75
|
-
[2]
|
|
74
|
+
[1] gpt-5.5 (默认)
|
|
75
|
+
[2] gpt-5.4
|
|
76
76
|
[3] 自定义模型名称
|
|
77
77
|
请选择 [1/2/3]:
|
|
78
78
|
```
|
|
@@ -112,8 +112,8 @@ API Key: sk-ant-123...xyz
|
|
|
112
112
|
## 模型选择(Codex)
|
|
113
113
|
|
|
114
114
|
Codex 用户可以选择:
|
|
115
|
-
1. `gpt-5
|
|
116
|
-
2. `
|
|
115
|
+
1. `gpt-5.5`(默认)
|
|
116
|
+
2. `gpt-5.4`
|
|
117
117
|
3. 自定义模型名称
|
|
118
118
|
|
|
119
119
|
## 完整示例
|
package/commands/config.js
CHANGED
|
@@ -106,29 +106,23 @@ async function configCommand(service, args = []) {
|
|
|
106
106
|
// 3. Extra Options (Service specific)
|
|
107
107
|
const options = {};
|
|
108
108
|
if (service.name === 'codex') {
|
|
109
|
-
const knownModels = ['gpt-5
|
|
110
|
-
let defaultModel = cliModel || 'gpt-5
|
|
109
|
+
const knownModels = ['gpt-5.4', 'gpt-5.5'];
|
|
110
|
+
let defaultModel = cliModel || 'gpt-5.5';
|
|
111
111
|
|
|
112
112
|
console.log('请选择模型:');
|
|
113
|
-
console.log(' [1] gpt-5
|
|
114
|
-
console.log(' [2] gpt-5.
|
|
115
|
-
console.log(' [3]
|
|
116
|
-
console.log(' [4] gpt-5.3-codex' + (defaultModel === 'gpt-5.3-codex' ? ' (默认)' : ''));
|
|
117
|
-
console.log(' [5] 自定义模型名称' + (!knownModels.includes(defaultModel) ? ' (默认: ' + defaultModel + ')' : ''));
|
|
113
|
+
console.log(' [1] gpt-5.5' + (defaultModel === 'gpt-5.5' ? ' (默认)' : ''));
|
|
114
|
+
console.log(' [2] gpt-5.4' + (defaultModel === 'gpt-5.4' ? ' (默认)' : ''));
|
|
115
|
+
console.log(' [3] 自定义模型名称' + (!knownModels.includes(defaultModel) ? ' (默认: ' + defaultModel + ')' : ''));
|
|
118
116
|
|
|
119
|
-
const choice = await askQuestion(rl, '请选择 [1/2/3
|
|
117
|
+
const choice = await askQuestion(rl, '请选择 [1/2/3]: ');
|
|
120
118
|
|
|
121
119
|
if (choice === '2') {
|
|
122
|
-
options.modelName = 'gpt-5.
|
|
120
|
+
options.modelName = 'gpt-5.4';
|
|
123
121
|
} else if (choice === '3') {
|
|
124
|
-
options.modelName = 'gpt-5.2-codex';
|
|
125
|
-
} else if (choice === '4') {
|
|
126
|
-
options.modelName = 'gpt-5.3-codex';
|
|
127
|
-
} else if (choice === '5') {
|
|
128
122
|
const customModel = await askQuestion(rl, '请输入自定义模型名称: ');
|
|
129
123
|
options.modelName = customModel || defaultModel;
|
|
130
124
|
} else if (choice === '1' || choice === '') {
|
|
131
|
-
options.modelName = (choice === '') ? defaultModel : 'gpt-5
|
|
125
|
+
options.modelName = (choice === '') ? defaultModel : 'gpt-5.5';
|
|
132
126
|
}
|
|
133
127
|
|
|
134
128
|
// Reasoning effort selection
|
package/commands/install.js
CHANGED
|
@@ -107,29 +107,23 @@ async function installCommand(service, args = []) {
|
|
|
107
107
|
// 3. Extra Options (Service specific)
|
|
108
108
|
const options = {};
|
|
109
109
|
if (service.name === 'codex') {
|
|
110
|
-
const knownModels = ['gpt-5
|
|
111
|
-
let defaultModel = cliModel || 'gpt-5
|
|
110
|
+
const knownModels = ['gpt-5.4', 'gpt-5.5'];
|
|
111
|
+
let defaultModel = cliModel || 'gpt-5.5';
|
|
112
112
|
|
|
113
113
|
console.log('请选择模型:');
|
|
114
|
-
console.log(' [1] gpt-5
|
|
115
|
-
console.log(' [2] gpt-5.
|
|
116
|
-
console.log(' [3]
|
|
117
|
-
console.log(' [4] gpt-5.3-codex' + (defaultModel === 'gpt-5.3-codex' ? ' (默认)' : ''));
|
|
118
|
-
console.log(' [5] 自定义模型名称' + (!knownModels.includes(defaultModel) ? ' (默认: ' + defaultModel + ')' : ''));
|
|
114
|
+
console.log(' [1] gpt-5.5' + (defaultModel === 'gpt-5.5' ? ' (默认)' : ''));
|
|
115
|
+
console.log(' [2] gpt-5.4' + (defaultModel === 'gpt-5.4' ? ' (默认)' : ''));
|
|
116
|
+
console.log(' [3] 自定义模型名称' + (!knownModels.includes(defaultModel) ? ' (默认: ' + defaultModel + ')' : ''));
|
|
119
117
|
|
|
120
|
-
const choice = await askQuestion(rl, '请选择 [1/2/3
|
|
118
|
+
const choice = await askQuestion(rl, '请选择 [1/2/3]: ');
|
|
121
119
|
|
|
122
120
|
if (choice === '2') {
|
|
123
|
-
options.modelName = 'gpt-5.
|
|
121
|
+
options.modelName = 'gpt-5.4';
|
|
124
122
|
} else if (choice === '3') {
|
|
125
|
-
options.modelName = 'gpt-5.2-codex';
|
|
126
|
-
} else if (choice === '4') {
|
|
127
|
-
options.modelName = 'gpt-5.3-codex';
|
|
128
|
-
} else if (choice === '5') {
|
|
129
123
|
const customModel = await askQuestion(rl, '请输入自定义模型名称: ');
|
|
130
124
|
options.modelName = customModel || defaultModel;
|
|
131
125
|
} else if (choice === '1' || choice === '') {
|
|
132
|
-
options.modelName = (choice === '') ? defaultModel : 'gpt-5
|
|
126
|
+
options.modelName = (choice === '') ? defaultModel : 'gpt-5.5';
|
|
133
127
|
}
|
|
134
128
|
|
|
135
129
|
// Reasoning effort selection
|
package/package.json
CHANGED
package/services/codex.js
CHANGED
|
@@ -24,7 +24,7 @@ module.exports = {
|
|
|
24
24
|
|
|
25
25
|
// Configuration setup logic
|
|
26
26
|
setupConfig: async (apiKey, apiUrl, options = {}) => {
|
|
27
|
-
const { modelName = 'gpt-5
|
|
27
|
+
const { modelName = 'gpt-5.5', reasoningEffort = 'high' } = options;
|
|
28
28
|
|
|
29
29
|
if (!fs.existsSync(configDir)) {
|
|
30
30
|
console.log('📁 创建 ~/.codex 目录...');
|