@dorokuma/magpie-gemini-web 0.17.0 → 0.18.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  本文件按版本倒序记录 `magpie-gemini-web`(0.15.0 起为 `@dorokuma/magpie-gemini-web`)的全部已发布与待发变更,依据本仓 `git log` 与 tag 事实编写。
4
4
 
5
+ ## 0.18.0 - 2026-11-19
6
+
7
+ ### 变更
8
+ - Gemini Web 后端 pin 升级至 **`dorokuma/gemini-web2api-go` `v6.2.0`** 官方预编译二进制:**`gemini-4-carbon` 对话模式与任务模式拆分**——`gemini-4-carbon` / `gemini-4-carbon-thinking` / `gemini-4-carbon-thinking-medium` 改为纯对话模式(三档各自准确自报),新增独立任务模式模型 `gemini-4-carbon-task`,三大家族(Neon / Carbon / Hydrogen)均提供独立 `-task` 模型(对应 Gemini Web 网页端「任务」开关)。
9
+
10
+ ### 修复
11
+ - AI Studio 插件兼容 `AIStudio2API` `v0.3.x` 的 `interactions_api` 能力键名:上游自 `v0.3.12` 起将 Deep Research 模型的能力标记由 `interaction_route` 更名为 `interactions_api`,恢复 `deep-research-*` 模型在新版后端 `/v1/models` 下的展示,同时保留旧 `interaction_route` 键的兼容。
12
+
5
13
  ## 0.17.0
6
14
 
7
15
  ### 新增
package/README.en.md CHANGED
@@ -6,21 +6,21 @@
6
6
 
7
7
  Use **Google AI Studio** and **Gemini on the web** through your Google account in [Magpie](https://usemagpie.ai/). The plugin runs [AIStudio2API](https://github.com/Mag1cFall/AIStudio2API) and [gemini-web2api-go](https://github.com/zexadev/gemini-web2api-go) locally, providing chat, native function calling, Nano Banana image generation, and Deep Research through OpenAI-compatible and Gemini APIs.
8
8
 
9
- > **New model support:** **Google AI Studio (`ai-studio`)** automatically follows official stable backend releases and supports **`gemini-4-hydrogen`** (including the `xhigh` thinking tier) and **`gemini-4-carbon`** (requires an eligible account tier such as Google AI Ultra). **Gemini Web (`gemini-web`)** is backed by [`dorokuma/gemini-web2api-go` `v6.1.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.1.0), which natively supports dedicated `gemini-4-carbon` / `gemini-4-hydrogen` / **`gemini-4-neon`** model IDs (including `-thinking` variants) and mutually recognizes slot upgrades/downgrades under `strict_model`; the `gemini-4-neon` family thinks server-side internally and never emits `reasoning_content`. **Chat and Task modes are separate:** use `gemini-4-neon` / `gemini-4-hydrogen` / `gemini-4-carbon` for everyday conversations, and the dedicated **`gemini-4-neon-task`** / **`gemini-4-hydrogen-task`** models for task- and tool-heavy scenarios (they map to Gemini Web's Task mode).
9
+ > **New model support:** **Google AI Studio (`ai-studio`)** automatically follows official stable backend releases and supports **`gemini-4-hydrogen`** (including the `xhigh` thinking tier) and **`gemini-4-carbon`** (requires an eligible account tier such as Google AI Ultra). **Gemini Web (`gemini-web`)** is backed by [`dorokuma/gemini-web2api-go` `v6.2.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.2.0), which natively supports dedicated `gemini-4-carbon` / `gemini-4-hydrogen` / **`gemini-4-neon`** model IDs (including `-thinking` variants) and mutually recognizes slot upgrades/downgrades under `strict_model`; the `gemini-4-neon` family thinks server-side internally and never emits `reasoning_content`. **Chat and Task modes are separate:** use `gemini-4-neon` / `gemini-4-hydrogen` / `gemini-4-carbon` for everyday conversations (`gemini-4-carbon` and its `-thinking` / `-thinking-medium` variants are chat-only), and the dedicated **`gemini-4-neon-task`** / **`gemini-4-carbon-task`** / **`gemini-4-hydrogen-task`** models for task- and tool-heavy scenarios (they map to Gemini Web's Task mode).
10
10
 
11
11
  ## Fork Notice & Acknowledgements
12
12
 
13
13
  This project is an actively maintained **fork of [BUKOWSKIREAL/magpie-gemini-web](https://github.com/BUKOWSKIREAL/magpie-gemini-web)**, released under the original MIT license ([LICENSE](LICENSE)). Thanks to the original author [@bukowskiiiiii](https://github.com/bukowskiiiiii) and the upstream backend/ecosystem authors:
14
14
 
15
- - Gemini Web backend: [zexadev/gemini-web2api-go](https://github.com/zexadev/gemini-web2api-go) (the pinned official prebuilt source of this repo, see [LICENSE-UPSTREAM](LICENSE-UPSTREAM))
15
+ - Gemini Web backend upstream: [zexadev/gemini-web2api-go](https://github.com/zexadev/gemini-web2api-go) (license: [LICENSE-UPSTREAM](LICENSE-UPSTREAM); the prebuilt binary pinned by this repo comes from the actively maintained fork [dorokuma/gemini-web2api-go](https://github.com/dorokuma/gemini-web2api-go))
16
16
  - AI Studio backend: [Mag1cFall/AIStudio2API](https://github.com/Mag1cFall/AIStudio2API)
17
17
  - Host gateway: [Magpie](https://usemagpie.ai/)
18
18
 
19
19
  **Key differences from upstream** (full history in [CHANGELOG](CHANGELOG.md)):
20
20
 
21
21
  1. npm package renamed to the scoped **`@dorokuma/magpie-gemini-web`**; the original unscoped `magpie-gemini-web` remains maintained by the upstream author as an independent npm package.
22
- 2. The Gemini Web backend is pinned to the **official Release prebuilt binaries** of `dorokuma/gemini-web2api-go` (currently `v6.1.0`, SHA-256 synced one-way by script); the local patch-and-rebuild pipeline was retired.
23
- 3. Gemini Web adds `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon` model IDs (plus the dedicated task-mode models `gemini-4-neon-task` / `gemini-4-hydrogen-task`) with slot cross-validation; fixes include phantom session cleanup, AI Studio proxy precedence, and atomic publish/self-healing for update locks.
22
+ 2. The Gemini Web backend is pinned to the **official Release prebuilt binaries** of `dorokuma/gemini-web2api-go` (currently `v6.2.0`, SHA-256 synced one-way by script); the local patch-and-rebuild pipeline was retired.
23
+ 3. Gemini Web adds `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon` model IDs (plus the dedicated task-mode models `gemini-4-neon-task` / `gemini-4-carbon-task` / `gemini-4-hydrogen-task`) with slot cross-validation; fixes include phantom session cleanup, AI Studio proxy precedence, and atomic publish/self-healing for update locks.
24
24
 
25
25
 
26
26
  ## Which Provider Should I Choose?
@@ -30,14 +30,14 @@ The plugin provides two independent providers that can be used individually or t
30
30
  | Feature | Google AI Studio (`ai-studio`) | Gemini Web (`gemini-web`) |
31
31
  | :--- | :--- | :--- |
32
32
  | **Best for** | **Primary use & coding agents (recommended)** | General chat & web quota |
33
- | **Key models** | `gemini-4-carbon` (Ultra / eligible accounts), `gemini-4-hydrogen`, `gemini-3.1-pro`, Flash series, Deep Research | `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon` (including `-thinking` variants; the Neon family thinks server-side internally and never emits `reasoning_content`), task-mode models `gemini-4-neon-task` / `gemini-4-hydrogen-task`, `gemini-3.8-flash`, `gemini-3.6-flash`, `gemini-3.5-flash-lite`, `gemini-3.1-pro` |
33
+ | **Key models** | `gemini-4-carbon` (Ultra / eligible accounts), `gemini-4-hydrogen`, `gemini-3.1-pro`, Flash series, Deep Research | `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon` (including `-thinking` variants; the Neon family thinks server-side internally and never emits `reasoning_content`), task-mode models `gemini-4-neon-task` / `gemini-4-carbon-task` / `gemini-4-hydrogen-task`, `gemini-3.8-flash`, `gemini-3.6-flash`, `gemini-3.5-flash-lite`, `gemini-3.1-pro` |
34
34
  | **Tool calling** | **Native Function Calling**, reliable | Prompt-emulated (experimental; Flash often skips tools) |
35
35
  | **Thinking levels** | Supported levels from the model catalog: `minimal` / `low` / `medium` / `high` / `xhigh` (Hydrogen) | `low` (base) / `medium` (`-thinking-medium`, Carbon / Neon families) / `high` (`-thinking` extended thinking) |
36
36
  | **Image input** | On by default; chat models read images | On by default; chat models read images (needs a signed-in cookie) |
37
37
  | **Image generation** | Nano Banana models, for Magpie's image generation (Magpie v0.1.2075+, see below) | Not supported |
38
38
  | **Sign-in method** | Automatic official installation; confirm an imported account | Copy `cookie` from a private/incognito window |
39
39
  | **Usage cards** | Shows models currently on cooldown and recovery times | Syncs **5-hour** & **weekly** usage and reset times from the web |
40
- | **Local backend** | AIStudio2API (automatic installation and stable updates) | gemini-web2api-go (`v6.1.0` pinned binary) |
40
+ | **Local backend** | AIStudio2API (automatic installation and stable updates) | gemini-web2api-go (`v6.2.0` pinned binary) |
41
41
 
42
42
  ---
43
43
 
@@ -244,13 +244,13 @@ When a plugin error asks you to run a command, it includes the full ready-to-cop
244
244
  - Models with `-build` or `assistant_route` are filtered out: they inject the Build coding assistant's own system prompt and are not offered as ordinary Agent models. Refresh with `magpie provider models ai-studio` after upgrading.
245
245
 
246
246
  **Gemini Web optimized backend upgrades & rollback:**
247
- - The missing multi-account index in [#53](https://github.com/dorokuma/magpie-gemini-web/issues/53) is fixed. Reimport affected cookies or correct the index in backend account management. Backend [`dorokuma/gemini-web2api-go` `v6.1.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.1.0) natively exposes dedicated `gemini-4-carbon`, `gemini-4-hydrogen`, and `gemini-4-neon` model IDs (including `-thinking` variants; the Neon family thinks server-side internally and never emits `reasoning_content`), and drops the public `gemini-4-argon*` models (the old Argon slot was renamed to 4 Carbon in the upstream catalog and Argon is delisted by Google—use `gemini-4-carbon*` or `gemini-4-neon*`); its `strict_model` slot check mutually recognizes display-name upgrades/downgrades, so paid accounts whose `gemini-3.8-flash` calls are routed to `4 Hydrogen` are identified correctly instead of failing with `429 model_downgraded`.
248
- - One-click setup pins the prebuilt [v6.1.0](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.1.0) binaries from the backend repository by default (one repo, one artifact: six-platform SHA-256 pins live in `lib/backend-release.json`; the plugin no longer patches and rebuilds the backend). Chat requests are timed by silence: while Google queues a request it sends a heartbeat every 60 s, and the backend waits through it for the first words. A try is given up, and retried, only after Google has sent nothing for `request_timeout_sec` (180 s by default), so a long reply that keeps coming is never cut off either.
249
- - **Upgrading:** On load the plugin detects a stale managed backend process, stops it and upgrades the binary to the pinned `v6.1.0`, which may interrupt in-flight generation requests. Wait for in-flight requests to finish, or stop the existing process manually (PID in `backend.pid` inside the data directory) before upgrading. Instances not managed or recognizable by the plugin are not guaranteed to auto-update. Config and cookies are preserved.
247
+ - The missing multi-account index in [#53](https://github.com/dorokuma/magpie-gemini-web/issues/53) is fixed. Reimport affected cookies or correct the index in backend account management. Backend [`dorokuma/gemini-web2api-go` `v6.2.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.2.0) natively exposes dedicated `gemini-4-carbon`, `gemini-4-hydrogen`, and `gemini-4-neon` model IDs (including `-thinking` variants; the Neon family thinks server-side internally and never emits `reasoning_content`), and drops the public `gemini-4-argon*` models (the old Argon slot was renamed to 4 Carbon in the upstream catalog and Argon is delisted by Google—use `gemini-4-carbon*` or `gemini-4-neon*`); its `strict_model` slot check mutually recognizes display-name upgrades/downgrades, so paid accounts whose `gemini-3.8-flash` calls are routed to `4 Hydrogen` are identified correctly instead of failing with `429 model_downgraded`.
248
+ - One-click setup pins the prebuilt [v6.2.0](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.2.0) binaries from the backend repository by default (one repo, one artifact: six-platform SHA-256 pins live in `lib/backend-release.json`; the plugin no longer patches and rebuilds the backend). Chat requests are timed by silence: while Google queues a request it sends a heartbeat every 60 s, and the backend waits through it for the first words. A try is given up, and retried, only after Google has sent nothing for `request_timeout_sec` (180 s by default), so a long reply that keeps coming is never cut off either.
249
+ - **Upgrading:** On load the plugin detects a stale managed backend process, stops it and upgrades the binary to the pinned `v6.2.0`, which may interrupt in-flight generation requests. Wait for in-flight requests to finish, or stop the existing process manually (PID in `backend.pid` inside the data directory) before upgrading. Instances not managed or recognizable by the plugin are not guaranteed to auto-update. Config and cookies are preserved.
250
250
  - **Rollback to upstream / restore the pinned build** (run in the plugin directory after stopping the backend):
251
251
  ```bash
252
252
  npm run backend:install:upstream # Roll back and pin to upstream zexadev v4.28.0
253
- npm run backend:install # Restore the default pinned v6.1.0
253
+ npm run backend:install # Restore the default pinned v6.2.0
254
254
  ```
255
255
  - For pin sync, verification and smoke procedures, see [docs/backend-release.md](docs/backend-release.md).
256
256
 
package/README.md CHANGED
@@ -6,21 +6,21 @@
6
6
 
7
7
  让 [Magpie](https://usemagpie.ai/) 通过你的 Google 账号使用 **Google AI Studio** 与 **Gemini 网页版**。插件在本机自动运行 [AIStudio2API](https://github.com/Mag1cFall/AIStudio2API) 与 [gemini-web2api-go](https://github.com/zexadev/gemini-web2api-go),提供对话、原生工具调用、Nano Banana 图片生成与 Deep Research 等能力。
8
8
 
9
- > **新模型支持说明**:**Google AI Studio (`ai-studio`)** 默认自动跟随官方最新稳定版后端,现已直接支持 **`gemini-4-hydrogen`**(含 `xhigh` 思考档位)与 **`gemini-4-carbon`**(需账号具备对应权益,如 Google AI Ultra)。**Gemini Web (`gemini-web`)** 由后端 [`dorokuma/gemini-web2api-go` `v6.1.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.1.0) 原生支持 `gemini-4-carbon` / `gemini-4-hydrogen` / **`gemini-4-neon`** 专用模型 ID(含 `-thinking` 思考变体),`strict_model` 开启时也能正确互认槽位升降级;`gemini-4-neon` 系列为服务端内部思考模型,回复中不输出 `reasoning_content`。**对话模式与任务模式分离**:日常对话用 `gemini-4-neon` / `gemini-4-hydrogen` / `gemini-4-carbon`,任务/工具密集型场景可选独立模型 **`gemini-4-neon-task`** 与 **`gemini-4-hydrogen-task`**(对应 Gemini Web 网页端「任务」开关)。
9
+ > **新模型支持说明**:**Google AI Studio (`ai-studio`)** 默认自动跟随官方最新稳定版后端,现已直接支持 **`gemini-4-hydrogen`**(含 `xhigh` 思考档位)与 **`gemini-4-carbon`**(需账号具备对应权益,如 Google AI Ultra)。**Gemini Web (`gemini-web`)** 由后端 [`dorokuma/gemini-web2api-go` `v6.2.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.2.0) 原生支持 `gemini-4-carbon` / `gemini-4-hydrogen` / **`gemini-4-neon`** 专用模型 ID(含 `-thinking` 思考变体),`strict_model` 开启时也能正确互认槽位升降级;`gemini-4-neon` 系列为服务端内部思考模型,回复中不输出 `reasoning_content`。**对话模式与任务模式分离**:日常对话用 `gemini-4-neon` / `gemini-4-hydrogen` / `gemini-4-carbon`(`gemini-4-carbon` 及 `-thinking` / `-thinking-medium` 变体为纯对话模式),任务/工具密集型场景可选独立任务模式模型 **`gemini-4-neon-task`**、**`gemini-4-carbon-task`** 与 **`gemini-4-hydrogen-task`**(对应 Gemini Web 网页端「任务」开关)。
10
10
 
11
11
  ## Fork 声明与致谢
12
12
 
13
13
  本项目是 **[BUKOWSKIREAL/magpie-gemini-web](https://github.com/BUKOWSKIREAL/magpie-gemini-web)** 的活跃分支,基于原版 MIT 许可开源([LICENSE](LICENSE))。感谢原作者 [@bukowskiiiiii](https://github.com/bukowskiiiiii),以及上游后端与生态作者:
14
14
 
15
- - Gemini Web 后端:[zexadev/gemini-web2api-go](https://github.com/zexadev/gemini-web2api-go)(本仓 pin 的官方预编译来源,许可见 [LICENSE-UPSTREAM](LICENSE-UPSTREAM))
15
+ - Gemini Web 后端上游:[zexadev/gemini-web2api-go](https://github.com/zexadev/gemini-web2api-go)(许可见 [LICENSE-UPSTREAM](LICENSE-UPSTREAM);本仓 pin 的预编译二进制来自活跃分支 [dorokuma/gemini-web2api-go](https://github.com/dorokuma/gemini-web2api-go))
16
16
  - AI Studio 后端:[Mag1cFall/AIStudio2API](https://github.com/Mag1cFall/AIStudio2API)
17
17
  - 宿主网关:[Magpie](https://usemagpie.ai/)
18
18
 
19
19
  **与原版的主要差异**(完整历史见 [CHANGELOG](CHANGELOG.md)):
20
20
 
21
21
  1. npm 包名迁移为作用域包 **`@dorokuma/magpie-gemini-web`**;原版无作用域包 `magpie-gemini-web` 仍由原作者维护,两者在 npm 上是相互独立的包。
22
- 2. Gemini Web 后端固定使用 `dorokuma/gemini-web2api-go` 的**官方 Release 预编译二进制**(当前 `v6.1.0`,SHA-256 由脚本单向同步、禁止手改),移除本地补丁重编流水线。
23
- 3. Gemini Web 新增 `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon` 模型 ID(含独立的任务模式模型 `gemini-4-neon-task` / `gemini-4-hydrogen-task`)与互认槽位校验;修复幻影会话、AI Studio 代理优先级、更新锁原子发布与自愈等问题。
22
+ 2. Gemini Web 后端固定使用 `dorokuma/gemini-web2api-go` 的**官方 Release 预编译二进制**(当前 `v6.2.0`,SHA-256 由脚本单向同步、禁止手改),移除本地补丁重编流水线。
23
+ 3. Gemini Web 新增 `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon` 模型 ID(含独立的任务模式模型 `gemini-4-neon-task` / `gemini-4-carbon-task` / `gemini-4-hydrogen-task`)与互认槽位校验;修复幻影会话、AI Studio 代理优先级、更新锁原子发布与自愈等问题。
24
24
 
25
25
 
26
26
  ## 怎么选?
@@ -30,14 +30,14 @@
30
30
  | 对比项 | Google AI Studio (`ai-studio`) | Gemini Web (`gemini-web`) |
31
31
  | :--- | :--- | :--- |
32
32
  | **适用场景** | **推荐主力与 Coding Agent 使用** | 日常对话、使用网页版额度 |
33
- | **主要模型** | `gemini-4-carbon`(Ultra 等有权益账号)、`gemini-4-hydrogen`、`gemini-3.1-pro`、Flash 系列、Deep Research | `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon`(含 `-thinking` 变体,Neon 系列为服务端内部思考、不输出 `reasoning_content`)、任务模式模型 `gemini-4-neon-task` / `gemini-4-hydrogen-task`、`gemini-3.8-flash`、`gemini-3.6-flash`、`gemini-3.5-flash-lite`、`gemini-3.1-pro` |
33
+ | **主要模型** | `gemini-4-carbon`(Ultra 等有权益账号)、`gemini-4-hydrogen`、`gemini-3.1-pro`、Flash 系列、Deep Research | `gemini-4-carbon` / `gemini-4-hydrogen` / `gemini-4-neon`(含 `-thinking` 变体,Neon 系列为服务端内部思考、不输出 `reasoning_content`)、任务模式模型 `gemini-4-neon-task` / `gemini-4-carbon-task` / `gemini-4-hydrogen-task`、`gemini-3.8-flash`、`gemini-3.6-flash`、`gemini-3.5-flash-lite`、`gemini-3.1-pro` |
34
34
  | **工具调用** | **原生 Function Calling**,稳定可靠 | 提示词模拟(实验性,Flash 系列常不调工具) |
35
35
  | **思考档位** | 按模型目录提供 `minimal` / `low` / `medium` / `high` / `xhigh`(Hydrogen)中支持的档位 | `low`(普通)/ `medium`(`-thinking-medium`,Carbon / Neon 系列)/ `high`(`-thinking` 扩展思考) |
36
36
  | **图片输入** | 默认开启,对话模型可以读图 | 默认开启,对话模型可以读图(需登录态挂 Cookie) |
37
37
  | **图片生成** | Nano Banana 系列模型,供 Magpie 的图片生成使用(需要 Magpie v0.1.2075+,见下文) | 不支持 |
38
38
  | **登录方式** | 自动安装官方后端,导入账号后确认连接 | 用无痕窗口登录并复制 `cookie` |
39
39
  | **额度卡片** | 显示冷却中的模型与恢复时间 | 同步网页版 **5 小时** 与 **每周** 用量及重置时间 |
40
- | **本地后端** | AIStudio2API(自动安装并跟随官方稳定版) | gemini-web2api-go (`v6.1.0` 固定 pin 二进制) |
40
+ | **本地后端** | AIStudio2API(自动安装并跟随官方稳定版) | gemini-web2api-go (`v6.2.0` 固定 pin 二进制) |
41
41
 
42
42
  ---
43
43
 
@@ -244,13 +244,13 @@ magpie plugin options @dorokuma/magpie-gemini-web '{"studio":{"proxy":"http://12
244
244
  - 模型列表过滤 `-build` / `assistant_route` 模型:这类模型附带 Build 写代码助手的系统提示词,不作为普通 Agent 模型提供。升级后可执行 `magpie provider models ai-studio` 刷新列表。
245
245
 
246
246
  **Gemini Web 优化后端升级与回退:**
247
- - [#53](https://github.com/dorokuma/magpie-gemini-web/issues/53) 的多账号索引漏传已修复,需重新导入受影响的 Cookie 或在后端账号管理中修正索引。后端 [`dorokuma/gemini-web2api-go` `v6.1.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.1.0) 已原生收录 `gemini-4-carbon`、`gemini-4-hydrogen` 与 `gemini-4-neon` 模型 ID(含 `-thinking` 思考变体,Neon 系列为服务端内部思考、不输出 `reasoning_content`),同时移除了 Gemini Web 对外 `gemini-4-argon*`(原 Argon 槽位在上游目录中原位改名为 4 Carbon,谷歌已下架 Argon,请改用 `gemini-4-carbon*` 或 `gemini-4-neon*`);`strict_model` 槽位校验按显示名家族互认升级/降级,付费账号请求 `gemini-3.8-flash` 被路由至 `4 Hydrogen` 时也能正确识别,不会误报 `429 model_downgraded`。
248
- - 插件默认固定使用后端仓发布的 [v6.1.0](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.1.0) 预编译二进制(一仓一制品,6 平台 SHA-256 pin 在 `lib/backend-release.json`,不再由插件仓打补丁重编)。对话请求按上游沉默计时:Google 让请求排队时每 60 秒发一次心跳,后端会一直等到出字;连续 `request_timeout_sec`(默认 180 秒)没有任何数据才放弃这一次并重试,还在出字的长回复也不会被截断。
249
- - **旧版升级**:插件加载时若识别到托管的旧版后端进程,会自动回收并升级到当前 pin 的 `v6.1.0`,这可能中断正在进行的生成请求;建议升级前先等待在途请求结束,或手动停止旧进程(PID 见数据目录 `backend.pid`)。非插件托管或无法识别的实例不保证自动更新。升级后保留原有配置与账号。
247
+ - [#53](https://github.com/dorokuma/magpie-gemini-web/issues/53) 的多账号索引漏传已修复,需重新导入受影响的 Cookie 或在后端账号管理中修正索引。后端 [`dorokuma/gemini-web2api-go` `v6.2.0`](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.2.0) 已原生收录 `gemini-4-carbon`、`gemini-4-hydrogen` 与 `gemini-4-neon` 模型 ID(含 `-thinking` 思考变体,Neon 系列为服务端内部思考、不输出 `reasoning_content`),同时移除了 Gemini Web 对外 `gemini-4-argon*`(原 Argon 槽位在上游目录中原位改名为 4 Carbon,谷歌已下架 Argon,请改用 `gemini-4-carbon*` 或 `gemini-4-neon*`);`strict_model` 槽位校验按显示名家族互认升级/降级,付费账号请求 `gemini-3.8-flash` 被路由至 `4 Hydrogen` 时也能正确识别,不会误报 `429 model_downgraded`。
248
+ - 插件默认固定使用后端仓发布的 [v6.2.0](https://github.com/dorokuma/gemini-web2api-go/releases/tag/v6.2.0) 预编译二进制(一仓一制品,6 平台 SHA-256 pin 在 `lib/backend-release.json`,不再由插件仓打补丁重编)。对话请求按上游沉默计时:Google 让请求排队时每 60 秒发一次心跳,后端会一直等到出字;连续 `request_timeout_sec`(默认 180 秒)没有任何数据才放弃这一次并重试,还在出字的长回复也不会被截断。
249
+ - **旧版升级**:插件加载时若识别到托管的旧版后端进程,会自动回收并升级到当前 pin 的 `v6.2.0`,这可能中断正在进行的生成请求;建议升级前先等待在途请求结束,或手动停止旧进程(PID 见数据目录 `backend.pid`)。非插件托管或无法识别的实例不保证自动更新。升级后保留原有配置与账号。
250
250
  - **回退官方上游版 / 恢复 pin 版**(停止后端后在插件目录执行):
251
251
  ```bash
252
252
  npm run backend:install:upstream # 回退并固定使用上游 zexadev v4.28.0
253
- npm run backend:install # 恢复默认 pin 的 v6.1.0
253
+ npm run backend:install # 恢复默认 pin 的 v6.2.0
254
254
  ```
255
255
  - pin 同步、校验与冒烟流程见 [docs/backend-release.md](docs/backend-release.md)。
256
256
 
@@ -1,31 +1,31 @@
1
1
  {
2
- "version": "6.1.0",
2
+ "version": "6.2.0",
3
3
  "repository": "dorokuma/gemini-web2api-go",
4
- "tag": "v6.1.0",
4
+ "tag": "v6.2.0",
5
5
  "binaries": {
6
6
  "darwin-x64": {
7
- "asset": "gemini-web2api-go_v6.1.0_darwin_amd64",
8
- "sha256": "b397f673b5b4e0569066d0439e689d0dc29924a5bedb6578d32f740e31fca64e"
7
+ "asset": "gemini-web2api-go_v6.2.0_darwin_amd64",
8
+ "sha256": "52db6d3cd4ea9d699c0c47c760e31b4da50ea367380b7705dbaede43263b8dc2"
9
9
  },
10
10
  "darwin-arm64": {
11
- "asset": "gemini-web2api-go_v6.1.0_darwin_arm64",
12
- "sha256": "77348467b0345ebac9bab6392075469415b3f3305fe6c930f891d0ecdfcda1ed"
11
+ "asset": "gemini-web2api-go_v6.2.0_darwin_arm64",
12
+ "sha256": "c63e1bc067e3fe89b2e127d9b45ba9429def0b1083f2c9c1fd18d305728a8047"
13
13
  },
14
14
  "linux-x64": {
15
- "asset": "gemini-web2api-go_v6.1.0_linux_amd64",
16
- "sha256": "0576a3cbc1b7899f1dfe5aa237a8855385abb9dd90cfd6e2da5ca54d336e68da"
15
+ "asset": "gemini-web2api-go_v6.2.0_linux_amd64",
16
+ "sha256": "c5a7377892452da10d2d741132c47bf713c1bbec5930ed097adc6e782c69de85"
17
17
  },
18
18
  "linux-arm64": {
19
- "asset": "gemini-web2api-go_v6.1.0_linux_arm64",
20
- "sha256": "f9dd7fbb2a8848bc9d5a478276da64e1d75c2d59c9dda9f07983a640d0f219b6"
19
+ "asset": "gemini-web2api-go_v6.2.0_linux_arm64",
20
+ "sha256": "7d45b28962a12086a6c813506a8649de06d6624b6f7f00e64f2f971020502765"
21
21
  },
22
22
  "win32-x64": {
23
- "asset": "gemini-web2api-go_v6.1.0_windows_amd64.exe",
24
- "sha256": "3e86315163fb16fce307517fe9825f78210e83f4910b5a3a1b8018c790e06c48"
23
+ "asset": "gemini-web2api-go_v6.2.0_windows_amd64.exe",
24
+ "sha256": "e8f771152a91b1de24b6e2fa4e057349547ecf08c5381fdcc647424432c39840"
25
25
  },
26
26
  "win32-arm64": {
27
- "asset": "gemini-web2api-go_v6.1.0_windows_arm64.exe",
28
- "sha256": "ac08bf4c2191e278300a109d960c32ae494bb6fcc9e0df6046e6bc4d5f19a459"
27
+ "asset": "gemini-web2api-go_v6.2.0_windows_arm64.exe",
28
+ "sha256": "435ef57ec5a00df2594bb5890654b0c47d050baf128d013deb92ab86e63a568a"
29
29
  }
30
30
  }
31
31
  }
package/lib/studio.mjs CHANGED
@@ -281,9 +281,11 @@ export async function listStudioModels(c, opts) {
281
281
  throw new Error('Invalid model entry in response: invalid id format');
282
282
  }
283
283
  const caps = item.capabilities && typeof item.capabilities === 'object' ? item.capabilities : {};
284
- // Deep Research agents (deep-research-*) are interaction_route models that AIStudio2API
285
- // serves on /chat/completions via CreateInteraction + GetInteractionStream, without tool calls.
286
- const researches = id.startsWith('deep-research-') && caps.interaction_route === true;
284
+ // Deep Research agents (deep-research-*) are Interactions-API models that AIStudio2API
285
+ // serves on /chat/completions via CreateInteraction + GetInteractionStream, without tool
286
+ // calls. The capability flag was interaction_route up to v0.2.x, renamed interactions_api
287
+ // since (v0.3.12 has only the latter).
288
+ const researches = id.startsWith('deep-research-') && (caps.interaction_route === true || caps.interactions_api === true);
287
289
  if (!id.startsWith('gemini-') && !researches) continue;
288
290
  // Build assistant models inject Google's coding-agent prompt and do not expose
289
291
  // ordinary function calling. Keep them out of this general-purpose provider.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dorokuma/magpie-gemini-web",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Google AI Studio and Gemini Web provider for Magpie (Gemini 4 Neon / Carbon / Hydrogen in Chat & Task modes, Nano Banana image generation, Deep Research), backed by AIStudio2API and gemini-web2api-go",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",