pi-model-manager 0.3.1 → 0.3.2
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.en.md +20 -20
- package/README.md +20 -20
- package/package.json +1 -1
- package/presets/builtin-client-headers.ts +3 -3
package/README.en.md
CHANGED
|
@@ -4,11 +4,11 @@ English · [简体中文](./README.md)
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/earendil-works/pi)
|
|
6
6
|
[](./LICENSE)
|
|
7
|
-
[](https://github.com/Qihuanxishini/pi-model-manager)
|
|
8
8
|
|
|
9
9
|
A TUI model and provider manager for [Pi](https://github.com/earendil-works/pi). It keeps Pi's native `models.json` as the single source of truth for model configuration while adding provider/model editing, client-header identities, proxy routing, and protocol compatibility controls.
|
|
10
10
|
|
|
11
|
-
> The current stable version is `0.3.
|
|
11
|
+
> The current stable version is `0.3.2` and requires Pi `>=0.84.2`.
|
|
12
12
|
|
|
13
13
|
## Interface preview
|
|
14
14
|
|
|
@@ -30,7 +30,7 @@ OpenAI (openai)
|
|
|
30
30
|
endpoint https://api.openai.com/v1
|
|
31
31
|
proxy direct
|
|
32
32
|
api Responses · headers Auto→Codex · auth env
|
|
33
|
-
models gpt-5.
|
|
33
|
+
models gpt-5.6-sol, gpt-5.6-terra
|
|
34
34
|
|
|
35
35
|
↑↓ 选择 Enter 进入 N 新建接入 D 删除接入 H 请求头 Esc 退出 / 搜索
|
|
36
36
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
@@ -48,8 +48,8 @@ Responses · 2 模型 · headers Auto→Codex · proxy direct · auth env
|
|
|
48
48
|
endpoint https://api.openai.com/v1
|
|
49
49
|
|
|
50
50
|
模型 ID 显示名 输入 Thinking 上下文
|
|
51
|
-
❯ gpt-5.
|
|
52
|
-
gpt-5.
|
|
51
|
+
❯ gpt-5.6-sol 默认 文本,视觉 开 1.1M
|
|
52
|
+
gpt-5.6-terra 默认 文本,视觉 开 1.1M
|
|
53
53
|
|
|
54
54
|
↑↓ 选择 Enter 编辑模型 A 添加模型 E 编辑接入 D 删除模型 Esc 返回 / 搜索
|
|
55
55
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
@@ -82,17 +82,17 @@ Ctrl+S 保存并同步 models.json;不切换当前会话模型
|
|
|
82
82
|
|
|
83
83
|
```text
|
|
84
84
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
85
|
-
编辑模型 gpt-5.
|
|
85
|
+
编辑模型 gpt-5.6-sol
|
|
86
86
|
接入 openai · API Responses
|
|
87
87
|
Ctrl+S 保存并启用模型;不切换当前会话模型
|
|
88
88
|
|
|
89
|
-
模型 ID gpt-5.
|
|
89
|
+
模型 ID gpt-5.6-sol
|
|
90
90
|
重新拉取 上游模型列表
|
|
91
91
|
显示名称 默认 = 模型 ID
|
|
92
92
|
❯ 视觉支持 开启
|
|
93
93
|
Thinking 开启
|
|
94
94
|
Fast mode 关闭
|
|
95
|
-
上下文窗口
|
|
95
|
+
上下文窗口 1050000
|
|
96
96
|
最大输出 128000
|
|
97
97
|
请求头 跟随接入(Auto→Codex)
|
|
98
98
|
|
|
@@ -108,14 +108,14 @@ Ctrl+S 保存并启用模型;不切换当前会话模型
|
|
|
108
108
|
搜索: <直接输入搜索>
|
|
109
109
|
匹配 9 / 9 · 页码 1 / 2
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
gpt-4
|
|
113
|
-
gpt-4
|
|
114
|
-
|
|
115
|
-
gpt-5.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
gpt-5.3
|
|
112
|
+
gpt-5.4
|
|
113
|
+
gpt-5.4-mini
|
|
114
|
+
gpt-5.5
|
|
115
|
+
gpt-5.6-luna
|
|
116
|
+
❯ gpt-5.6-sol ← 当前
|
|
117
|
+
gpt-5.6-terra
|
|
118
|
+
gpt-image-2
|
|
119
119
|
|
|
120
120
|
↑↓ 选择 · ←→/PgUp/PgDn 翻页 · 输入搜索 · Backspace 删除 · Enter 确认 · Esc 取消
|
|
121
121
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
@@ -227,8 +227,8 @@ Model capabilities include:
|
|
|
227
227
|
|
|
228
228
|
The current built-in values were derived from real client requests with authentication fields removed:
|
|
229
229
|
|
|
230
|
-
- Claude Code `2.1.
|
|
231
|
-
- Codex TUI `0.
|
|
230
|
+
- Claude Code `2.1.243`
|
|
231
|
+
- Codex TUI `0.149.1`
|
|
232
232
|
|
|
233
233
|
These headers only help API gateways that require a recognized client identity; they do not replace an API key. The public repository and npm package contain **no request-capture tooling, user captures, authentication headers, or machine-local state**. Disable identity headers or create a custom profile if a built-in profile does not fit your endpoint.
|
|
234
234
|
|
|
@@ -295,9 +295,9 @@ npm pack --dry-run
|
|
|
295
295
|
|
|
296
296
|
Open a reproducible report in [GitHub Issues](https://github.com/Qihuanxishini/pi-model-manager/issues). Remove API keys, authentication headers, proxy credentials, and private endpoints before sharing configuration or logs.
|
|
297
297
|
|
|
298
|
-
##
|
|
298
|
+
## Friendly links
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
* [Linux DO](https://linux.do)
|
|
301
301
|
|
|
302
302
|
## License
|
|
303
303
|
|
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/earendil-works/pi)
|
|
6
6
|
[](./LICENSE)
|
|
7
|
-
[](https://github.com/Qihuanxishini/pi-model-manager)
|
|
8
8
|
|
|
9
9
|
一个面向 [Pi](https://github.com/earendil-works/pi) 的 TUI 模型与接入管理扩展。它以 Pi 原生 `models.json` 为模型配置的唯一权威来源,并提供接入/模型编辑、请求头身份、代理路由和协议兼容配置。
|
|
10
10
|
|
|
11
|
-
> 当前稳定版为 `0.3.
|
|
11
|
+
> 当前稳定版为 `0.3.2`,要求 Pi `>=0.84.2`。
|
|
12
12
|
|
|
13
13
|
## 界面预览
|
|
14
14
|
|
|
@@ -30,7 +30,7 @@ OpenAI (openai)
|
|
|
30
30
|
endpoint https://api.openai.com/v1
|
|
31
31
|
proxy direct
|
|
32
32
|
api Responses · headers Auto→Codex · auth env
|
|
33
|
-
models gpt-5.
|
|
33
|
+
models gpt-5.6-sol, gpt-5.6-terra
|
|
34
34
|
|
|
35
35
|
↑↓ 选择 Enter 进入 N 新建接入 D 删除接入 H 请求头 Esc 退出 / 搜索
|
|
36
36
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
@@ -48,8 +48,8 @@ Responses · 2 模型 · headers Auto→Codex · proxy direct · auth env
|
|
|
48
48
|
endpoint https://api.openai.com/v1
|
|
49
49
|
|
|
50
50
|
模型 ID 显示名 输入 Thinking 上下文
|
|
51
|
-
❯ gpt-5.
|
|
52
|
-
gpt-5.
|
|
51
|
+
❯ gpt-5.6-sol 默认 文本,视觉 开 1.1M
|
|
52
|
+
gpt-5.6-terra 默认 文本,视觉 开 1.1M
|
|
53
53
|
|
|
54
54
|
↑↓ 选择 Enter 编辑模型 A 添加模型 E 编辑接入 D 删除模型 Esc 返回 / 搜索
|
|
55
55
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
@@ -82,17 +82,17 @@ Ctrl+S 保存并同步 models.json;不切换当前会话模型
|
|
|
82
82
|
|
|
83
83
|
```text
|
|
84
84
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
85
|
-
编辑模型 gpt-5.
|
|
85
|
+
编辑模型 gpt-5.6-sol
|
|
86
86
|
接入 openai · API Responses
|
|
87
87
|
Ctrl+S 保存并启用模型;不切换当前会话模型
|
|
88
88
|
|
|
89
|
-
模型 ID gpt-5.
|
|
89
|
+
模型 ID gpt-5.6-sol
|
|
90
90
|
重新拉取 上游模型列表
|
|
91
91
|
显示名称 默认 = 模型 ID
|
|
92
92
|
❯ 视觉支持 开启
|
|
93
93
|
Thinking 开启
|
|
94
94
|
Fast mode 关闭
|
|
95
|
-
上下文窗口
|
|
95
|
+
上下文窗口 1050000
|
|
96
96
|
最大输出 128000
|
|
97
97
|
请求头 跟随接入(Auto→Codex)
|
|
98
98
|
|
|
@@ -108,14 +108,14 @@ Ctrl+S 保存并启用模型;不切换当前会话模型
|
|
|
108
108
|
搜索: <直接输入搜索>
|
|
109
109
|
匹配 9 / 9 · 页码 1 / 2
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
gpt-4
|
|
113
|
-
gpt-4
|
|
114
|
-
|
|
115
|
-
gpt-5.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
gpt-5.3
|
|
112
|
+
gpt-5.4
|
|
113
|
+
gpt-5.4-mini
|
|
114
|
+
gpt-5.5
|
|
115
|
+
gpt-5.6-luna
|
|
116
|
+
❯ gpt-5.6-sol ← 当前
|
|
117
|
+
gpt-5.6-terra
|
|
118
|
+
gpt-image-2
|
|
119
119
|
|
|
120
120
|
↑↓ 选择 · ←→/PgUp/PgDn 翻页 · 输入搜索 · Backspace 删除 · Enter 确认 · Esc 取消
|
|
121
121
|
────────────────────────────────────────────────────────────────────────────────────────
|
|
@@ -231,8 +231,8 @@ Base URL 在填入时就会归一化为各协议 SDK 可直接使用的根地址
|
|
|
231
231
|
|
|
232
232
|
当前内置值来自真实客户端请求并已移除认证信息:
|
|
233
233
|
|
|
234
|
-
- Claude Code `2.1.
|
|
235
|
-
- Codex TUI `0.
|
|
234
|
+
- Claude Code `2.1.243`
|
|
235
|
+
- Codex TUI `0.149.1`
|
|
236
236
|
|
|
237
237
|
这些值只用于兼容需要识别客户端身份的 API 中转,不代替 API key。公开仓库和 npm 包**不包含请求捕获工具、用户抓包、认证头或本机状态**。如果内置值不适合你的服务,请关闭身份头或创建自定义请求头。
|
|
238
238
|
|
|
@@ -299,9 +299,9 @@ npm pack --dry-run
|
|
|
299
299
|
|
|
300
300
|
请通过 [GitHub Issues](https://github.com/Qihuanxishini/pi-model-manager/issues) 提交可复现的问题。报告配置问题时,请删除 API key、认证头、代理凭据和私有 endpoint。
|
|
301
301
|
|
|
302
|
-
##
|
|
302
|
+
## 友情链接
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
* [Linux DO](https://linux.do)
|
|
305
305
|
|
|
306
306
|
## 许可证
|
|
307
307
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-model-manager",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "A TUI model and provider manager for Pi with native models.json persistence, request-header profiles, proxy routing, and protocol compatibility.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// 由私有 request-capture-service 根据真实客户端请求生成;公开插件仅消费这些脱敏后的内置值。
|
|
2
2
|
|
|
3
3
|
export const CLAUDE_CODE_CLIENT_HEADERS: Record<string, string> = {
|
|
4
|
-
"anthropic-beta": "claude-code-20250219,context-1m-2025-08-07,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,effort-2025-11-24",
|
|
4
|
+
"anthropic-beta": "claude-code-20250219,context-1m-2025-08-07,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,effort-2025-11-24,fallback-credit-2026-06-01",
|
|
5
5
|
"anthropic-dangerous-direct-browser-access": "true",
|
|
6
6
|
"anthropic-version": "2023-06-01",
|
|
7
|
-
"user-agent": "claude-cli/2.1.
|
|
7
|
+
"user-agent": "claude-cli/2.1.243 (external, sdk-cli)",
|
|
8
8
|
"x-app": "cli",
|
|
9
9
|
"x-stainless-arch": "x64",
|
|
10
10
|
"x-stainless-lang": "js",
|
|
@@ -18,6 +18,6 @@ export const CLAUDE_CODE_CLIENT_HEADERS: Record<string, string> = {
|
|
|
18
18
|
|
|
19
19
|
export const CODEX_CLI_CLIENT_HEADERS: Record<string, string> = {
|
|
20
20
|
"originator": "codex-tui",
|
|
21
|
-
"user-agent": "codex-tui/0.
|
|
21
|
+
"user-agent": "codex-tui/0.149.1 (Windows 10.0.26200; x86_64) unknown (codex-tui; 0.149.1)",
|
|
22
22
|
"x-codex-beta-features": "remote_compaction_v2",
|
|
23
23
|
};
|