pumpkinai-config 1.0.5 → 1.0.8
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/claude-setup.js +12 -26
- package/codex-setup.js +1 -1
- package/package.json +1 -1
package/claude-setup.js
CHANGED
|
@@ -175,7 +175,8 @@ function createClaudeConfig(apiKey) {
|
|
|
175
175
|
const settings = {
|
|
176
176
|
env: {
|
|
177
177
|
ANTHROPIC_AUTH_TOKEN: apiKey,
|
|
178
|
-
ANTHROPIC_BASE_URL: "https://code.ppchat.vip"
|
|
178
|
+
ANTHROPIC_BASE_URL: "https://code.ppchat.vip",
|
|
179
|
+
ANTHROPIC_DEFAULT_HAIKU_MODEL: "claude-3-5-haiku-20241022"
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
182
|
|
|
@@ -320,15 +321,8 @@ function setupEnvironmentVariable() {
|
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
log('[配置] 正在使环境变量立即生效...', 'cyan');
|
|
326
|
-
execSync(`source ${zshrcPath}`, { shell: '/bin/zsh' });
|
|
327
|
-
log('[成功] 环境变量已在当前会话中生效', 'green');
|
|
328
|
-
} catch (error) {
|
|
329
|
-
// source 命令可能在某些情况下失败,提示用户手动执行
|
|
330
|
-
log('[提示] 如需在当前终端立即生效,请运行: source ~/.zshrc', 'yellow');
|
|
331
|
-
}
|
|
324
|
+
log('[提示] 环境变量将在新终端窗口中生效', 'yellow');
|
|
325
|
+
log('[提示] 如需在当前终端立即生效,请运行: source ~/.zshrc', 'yellow');
|
|
332
326
|
} else {
|
|
333
327
|
log('[提示] ~/.zshrc 中已存在该环境变量', 'yellow');
|
|
334
328
|
}
|
|
@@ -361,15 +355,8 @@ function setupEnvironmentVariable() {
|
|
|
361
355
|
}
|
|
362
356
|
}
|
|
363
357
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
log('[配置] 正在使环境变量立即生效...', 'cyan');
|
|
367
|
-
execSync(`source ${bashrcPath}`, { shell: '/bin/bash' });
|
|
368
|
-
log('[成功] 环境变量已在当前会话中生效', 'green');
|
|
369
|
-
} catch (error) {
|
|
370
|
-
// source 命令可能在某些情况下失败,提示用户手动执行
|
|
371
|
-
log('[提示] 如需在当前终端立即生效,请运行: source ~/.bashrc', 'yellow');
|
|
372
|
-
}
|
|
358
|
+
log('[提示] 环境变量将在新终端窗口中生效', 'yellow');
|
|
359
|
+
log('[提示] 如需在当前终端立即生效,请运行: source ~/.bashrc', 'yellow');
|
|
373
360
|
} else {
|
|
374
361
|
log('[提示] ~/.bashrc 中已存在该环境变量', 'yellow');
|
|
375
362
|
}
|
|
@@ -419,16 +406,15 @@ function showCompletionInfo() {
|
|
|
419
406
|
log('\n[启动方式]', 'cyan');
|
|
420
407
|
|
|
421
408
|
if (osType === 'windows') {
|
|
422
|
-
log('
|
|
409
|
+
log(' 请重新打开终端后运行:', 'reset');
|
|
423
410
|
log(' claude', 'yellow');
|
|
424
|
-
log('', 'reset');
|
|
425
|
-
log(' 注意: 当前终端需要重新打开才能生效', 'yellow');
|
|
426
411
|
} else if (osType === 'mac') {
|
|
427
|
-
log('
|
|
428
|
-
log('
|
|
412
|
+
log(' 请重新打开终端后运行:', 'reset');
|
|
413
|
+
log(' claude', 'yellow');
|
|
414
|
+
|
|
429
415
|
} else {
|
|
430
|
-
log('
|
|
431
|
-
log('
|
|
416
|
+
log(' 请重新打开终端后运行:', 'reset');
|
|
417
|
+
log(' claude', 'yellow');
|
|
432
418
|
}
|
|
433
419
|
|
|
434
420
|
const claudeVersion = getClaudeVersion();
|
package/codex-setup.js
CHANGED
|
@@ -190,7 +190,7 @@ function createConfigToml(codexDir) {
|
|
|
190
190
|
const configPath = path.join(codexDir, 'config.toml');
|
|
191
191
|
|
|
192
192
|
const configContent = `model_provider = "codex"
|
|
193
|
-
model = "gpt-5" #可更改为model = "gpt-5-codex"
|
|
193
|
+
model = "gpt-5.1" #可更改为model = "gpt-5.1-codex或者gpt-5.1-codex-max"
|
|
194
194
|
model_reasoning_effort = "high"
|
|
195
195
|
disable_response_storage = true
|
|
196
196
|
|