@ailuntz/minilink 0.9.2 → 0.9.4

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
@@ -2,9 +2,18 @@
2
2
 
3
3
  在 ChatGPT / Codex Desktop 的原生模型菜单中使用自定义模型。
4
4
 
5
+ ## 说明
6
+
7
+ 官方 [Profiles](https://learn.chatgpt.com/docs/config-file/config-advanced?site_locale=en#profiles) 已支持独立配置文件:`codex --profile deep-review` 会在 `~/.codex/config.toml` 上叠加 `~/.codex/deep-review.config.toml`。配置使用顶层字段,无需嵌套在 `[profiles.deep-review]` 中。
8
+
9
+ **截至 2026-09-24,仅添加 Profile 不会将额外供应商的模型加入 Desktop 菜单。MiniLink 读取这些配置,补充桌面端的模型选择能力。**
10
+
11
+
5
12
  ## 安装
6
13
 
7
- 支持 macOS,需 Node.js ≥22.16。
14
+ 需 Node.js ≥22.16,并已安装 Desktop。
15
+
16
+ macOS / Windows / Linux:
8
17
 
9
18
  ```sh
10
19
  npm install -g @ailuntz/minilink
@@ -22,16 +31,20 @@ minilink on
22
31
  | `minilink off` | 关闭 |
23
32
  | `minilink doctor` | 检查配置与运行状态 |
24
33
 
34
+ 通过 `minilink link` 保存选择后,完全退出并重开 Desktop。
35
+
25
36
  ## 配置
26
37
 
27
38
  读取 `~/.codex/*.config.toml`。通过 `model_catalog_json` 指定模型目录;未指定时继承原生目录。密钥使用提供商配置的环境变量,也可保存在 `~/.codex/.env`。
28
39
 
29
40
  支持 Responses API。符合条件的连接提供 `-Chat` 选项,用于纯文字聊天。
30
41
 
31
- 供应商示例:[DeepSeek / 豆包](examples/providers/)。
42
+ 供应商示例:[DeepSeek / 豆包 / Sub2API](examples/providers/)。修改配置后重启 Desktop。
32
43
 
33
44
  ## 卸载
34
45
 
46
+ macOS:
47
+
35
48
  ```sh
36
49
  npm uninstall -g @ailuntz/minilink
37
50
  ```
@@ -1,2 +1,3 @@
1
1
  DEEPSEEK_API_KEY=
2
2
  ARK_API_KEY=
3
+ SUB2API_API_KEY=
@@ -1,11 +1,12 @@
1
1
  # 供应商配置
2
2
 
3
- 将所需的 `.config.toml` 和 `-models.json` 文件放入 `~/.codex/`,按 `.env.example` 将密钥补充到 `~/.codex/.env`,然后重启 Desktop。
3
+ 将所需配置放入 `~/.codex/`,按 `.env.example` 将密钥补充到 `~/.codex/.env`,然后重启 Desktop。DeepSeek 和豆包使用独立模型目录;Sub2API 继承 Desktop 的原生模型目录,只需一个配置文件。
4
4
 
5
5
  | 供应商 | 模型 |
6
6
  | --- | --- |
7
7
  | DeepSeek | V4.1 Flash、V4 Pro |
8
8
  | 豆包 | Seed 2.1 Pro、Seed 2.1 Lite(260915) |
9
+ | Sub2API | 继承原生模型目录 |
9
10
 
10
11
  MiniLink 的 Chat 模式仅支持文字。
11
12
 
@@ -0,0 +1,8 @@
1
+ model_provider = "sub2api"
2
+
3
+ [model_providers.sub2api]
4
+ name = "Sub2API"
5
+ base_url = "https://www.966gravity.com"
6
+ env_key = "SUB2API_API_KEY"
7
+ wire_api = "responses"
8
+ requires_openai_auth = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailuntz/minilink",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Use your Codex profiles in the Desktop model menu.",
5
5
  "type": "module",
6
6
  "license": "MIT AND Apache-2.0",