pumpkinai-config 1.0.14 → 1.0.16
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-api.js +2 -1
- package/claude-setup.js +6 -7
- package/codex-api.js +1 -1
- package/codex-setup.js +1 -1
- package/package.json +1 -2
- package/templates/auth.json +0 -3
- package/templates/config.toml +0 -11
package/claude-api.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://new.aicode.us.com"
|
|
178
|
+
ANTHROPIC_BASE_URL: "https://new.aicode.us.com",
|
|
179
|
+
ANTHROPIC_SMALL_FAST_MODEL: "claude-3-5-haiku-20241022",
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
182
|
|
package/claude-setup.js
CHANGED
|
@@ -86,14 +86,14 @@ function installClaude() {
|
|
|
86
86
|
log('[安装] 开始安装 @anthropic-ai/claude-code...', 'cyan');
|
|
87
87
|
|
|
88
88
|
if (osType === 'windows') {
|
|
89
|
-
command = 'npm install -g @anthropic-ai/claude-code
|
|
89
|
+
command = 'npm install -g @anthropic-ai/claude-code --registry https://registry.npmmirror.com';
|
|
90
90
|
} else {
|
|
91
91
|
// 检查是否已经是 root 用户(通过 sudo 运行或直接 root)
|
|
92
92
|
const isRoot = process.getuid && process.getuid() === 0;
|
|
93
93
|
if (isRoot) {
|
|
94
|
-
command = 'npm install -g @anthropic-ai/claude-code
|
|
94
|
+
command = 'npm install -g @anthropic-ai/claude-code --registry https://registry.npmmirror.com';
|
|
95
95
|
} else {
|
|
96
|
-
command = 'sudo npm install -g @anthropic-ai/claude-code
|
|
96
|
+
command = 'sudo npm install -g @anthropic-ai/claude-code --registry https://registry.npmmirror.com';
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -175,10 +175,9 @@ function createClaudeConfig(apiKey) {
|
|
|
175
175
|
const settings = {
|
|
176
176
|
env: {
|
|
177
177
|
ANTHROPIC_AUTH_TOKEN: apiKey,
|
|
178
|
-
ANTHROPIC_BASE_URL: "https://code.ppchat.vip"
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
autoUpdates: false
|
|
178
|
+
ANTHROPIC_BASE_URL: "https://code.ppchat.vip",
|
|
179
|
+
ANTHROPIC_SMALL_FAST_MODEL: "claude-3-5-haiku-20241022"
|
|
180
|
+
}
|
|
182
181
|
};
|
|
183
182
|
|
|
184
183
|
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2), 'utf8');
|
package/codex-api.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.
|
|
193
|
+
model = "gpt-5.2" #可更改为model = "gpt-5.1-codex或者gpt-5.1-codex-max"
|
|
194
194
|
model_reasoning_effort = "high"
|
|
195
195
|
disable_response_storage = true
|
|
196
196
|
|
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.
|
|
193
|
+
model = "gpt-5.2" #可更改为model = "gpt-5.1-codex或者gpt-5.1-codex-max"
|
|
194
194
|
model_reasoning_effort = "high"
|
|
195
195
|
disable_response_storage = true
|
|
196
196
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumpkinai-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "PumpkinAI 一键安装配置工具 - 支持 Codex 和 Claude Code",
|
|
5
5
|
"main": "codex-setup.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"codex-config": "./codex-setup.js",
|
|
8
8
|
"codex-api": "./codex-api.js",
|
|
9
9
|
"claude-config": "./claude-setup.js",
|
|
10
|
-
"claude-au": "./claude-au.js",
|
|
11
10
|
"claude-api": "./claude-api.js"
|
|
12
11
|
},
|
|
13
12
|
"scripts": {
|
package/templates/auth.json
DELETED
package/templates/config.toml
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
model_provider = "codex"
|
|
2
|
-
model = "gpt-5.1" #可更改为model = "gpt-5.1-codex或者gpt-5.1-codex-max"
|
|
3
|
-
model_reasoning_effort = "high"
|
|
4
|
-
disable_response_storage = true
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[model_providers.codex]
|
|
8
|
-
name = "codex"
|
|
9
|
-
base_url = "https://code.ppchat.vip/v1"
|
|
10
|
-
wire_api = "responses"
|
|
11
|
-
requires_openai_auth = true
|