From 7194e70d5b9a5c6bc81543b2216199765fc49077 Mon Sep 17 00:00:00 2001 From: Sunsh1neY <1909164966@qq.com> Date: Thu, 3 Sep 2026 10:55:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(models):=20=E6=96=B0=E5=A2=9E=20gemini-3.8?= =?UTF-8?q?-flash=20=E5=B9=B6=E8=B0=83=E6=95=B4=203.7=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add gemini-3.8-flash (released 2026-09-02) with the same FAST mode mapping as 3.7-flash (mode=1, think=4). Also add the missing gemini-3.7-flash entry to the cloudflare worker model table and update README model lists. --- README.md | 4 +++- README_CN.md | 4 +++- cloudflare/worker.js | 12 +++++++++++- gemini_web2api.py | 6 +++++- gemini_web2api/models.py | 6 +++++- 5 files changed, 27 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2de681f..a116bdd 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,9 @@ Supports Google native API endpoints: | Model | Description | Output | |-------|-------------|--------| -| `gemini-3.6-flash` | All-around model (latest) | ~12k chars | +| `gemini-3.8-flash` | All-around model (latest) | ~12k chars | +| `gemini-3.7-flash` | All-around model | ~12k chars | +| `gemini-3.6-flash` | All-around model | ~12k chars | | `gemini-3.5-flash` | Alias for gemini-3.6-flash | ~12k chars | | `gemini-3.5-flash-thinking` | Extended thinking, longest output | **~20k chars** | | `gemini-3.5-flash-thinking-lite` | Adaptive thinking depth | ~15k chars | diff --git a/README_CN.md b/README_CN.md index 0958651..852163c 100644 --- a/README_CN.md +++ b/README_CN.md @@ -78,7 +78,9 @@ gemini | 模型 | 说明 | 输出量 | |------|------|--------| -| `gemini-3.6-flash` | 全能模型 (最新) | ~1.2万字 | +| `gemini-3.8-flash` | 全能模型 (最新) | ~1.2万字 | +| `gemini-3.7-flash` | 全能模型 | ~1.2万字 | +| `gemini-3.6-flash` | 全能模型 | ~1.2万字 | | `gemini-3.5-flash` | gemini-3.6-flash 别名 | ~1.2万字 | | `gemini-3.5-flash-thinking` | 扩展思考, 最长输出 | **~2万字** | | `gemini-3.5-flash-thinking-lite` | 自适应思考深度 | ~1.5万字 | diff --git a/cloudflare/worker.js b/cloudflare/worker.js index 938c240..565a833 100644 --- a/cloudflare/worker.js +++ b/cloudflare/worker.js @@ -440,10 +440,20 @@ function getRandomSecChUaPlatform() { // 4 = AUTO(自动选择思考深度,由 Gemini 决定) var MODELS = { + 'gemini-3.8-flash': { + mode: 1, // FAST - 快速模式 + think: 4, // AUTO - 自动选择思考深度 + desc: 'Latest all-around model (Gemini 3.8 Flash)', + }, + 'gemini-3.7-flash': { + mode: 1, // FAST - 快速模式 + think: 4, // AUTO - 自动选择思考深度 + desc: 'All-around model (Gemini 3.7 Flash)', + }, 'gemini-3.6-flash': { mode: 1, // FAST - 快速模式 think: 4, // AUTO - 自动选择思考深度 - desc: 'Latest all-around model (Gemini 3.6 Flash)', + desc: 'All-around model (Gemini 3.6 Flash)', }, 'gemini-3.5-flash': { mode: 1, // FAST diff --git a/gemini_web2api.py b/gemini_web2api.py index 1f73f6e..e736e76 100644 --- a/gemini_web2api.py +++ b/gemini_web2api.py @@ -71,9 +71,13 @@ # 1=FAST, 2=THINKING, 3=PRO, 4=AUTO, 5=FAST_DYNAMIC_THINKING, 6=FLASH_LITE MODELS = { + "gemini-3.8-flash": { + "mode": 1, "think": 4, + "desc": "Latest all-around model (Gemini 3.8 Flash)", + }, "gemini-3.7-flash": { "mode": 1, "think": 4, - "desc": "Latest all-around model (Gemini 3.7 Flash)", + "desc": "All-around model (Gemini 3.7 Flash)", }, "gemini-3.6-flash": { "mode": 1, "think": 4, diff --git a/gemini_web2api/models.py b/gemini_web2api/models.py index de4ba07..08cc7f4 100644 --- a/gemini_web2api/models.py +++ b/gemini_web2api/models.py @@ -4,9 +4,13 @@ # 1=FAST, 2=THINKING, 3=PRO, 4=AUTO, 5=FAST_DYNAMIC_THINKING, 6=FLASH_LITE MODELS = { + "gemini-3.8-flash": { + "mode": 1, "think": 4, + "desc": "Latest all-around model (Gemini 3.8 Flash)", + }, "gemini-3.7-flash": { "mode": 1, "think": 4, - "desc": "Latest all-around model (Gemini 3.7 Flash)", + "desc": "All-around model (Gemini 3.7 Flash)", }, "gemini-3.6-flash": { "mode": 1, "think": 4,