From a3f0ab0dda1ea4b72b37b298100273effe15edf9 Mon Sep 17 00:00:00 2001 From: XUANJI233 <56026539+XUANJI233@users.noreply.github.com> Date: Mon, 30 Nov 2026 06:34:51 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=20gemini-4-neon=20?= =?UTF-8?q?=E4=B8=8E=20gemini-pro-orchestrator-neon=20=E5=8D=95=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/logging.md | 1 + internal/requestdb/pricing.go | 6 ++++++ internal/requestdb/requestdb_test.go | 2 ++ 3 files changed, 9 insertions(+) diff --git a/docs/logging.md b/docs/logging.md index 9453b00..f24baaf 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -467,6 +467,7 @@ INFO account@example.com 事件流恢复 | 模型=gemini-3.8-flash-high | 停 | `gpt-oss-120b` | 0.09 | 0.09 | 0.36 | — | | `gemini-4-carbon`、`gemini-pro-orchestrator` | 2 / 4 | 0.10 / 0.20 | 10 / 20 | 2026-12-01 PST 起切换后档 | | `gemini-4-argon`、`gemini-pro-orchestrator-argon` | 2 / 4 | 0.10 / 0.20 | 10 / 20 | 2026-12-01 PST 起切换后档 | +| `gemini-4-neon`、`gemini-pro-orchestrator-neon` | 3 | 0.15 | 15 | — | | `gemini-4-hydrogen`、`gemini-flash-worker-agy` | 1.50 | 0.075 | 7.50 | — | | `gemini-3.8-flash` | 0.75 / 1.50 | 0.075 / 0.15 | 3.75 / 7.50 | 2027-01-01 PST 起切换后档 | | `gemini-3.5-flash`、`gemini-3-flash-agent` | 1.50 | 0.15 | 9 | — | diff --git a/internal/requestdb/pricing.go b/internal/requestdb/pricing.go index 37425a3..324a2c6 100644 --- a/internal/requestdb/pricing.go +++ b/internal/requestdb/pricing.go @@ -31,6 +31,9 @@ var argon = []price{{input: 2, cached: 0.10, output: 10}, {from: gemini4Raise, i // flash38Raise 是 Gemini API 定价页 Gemini 3.8 Flash 涨价生效的时刻(2027-01-01 太平洋时间) var flash38Raise = time.Date(2027, 1, 1, 0, 0, 0, 0, time.FixedZone("PST", -8*3600)) +// neon 是 Gemini API 付费层 Gemini 4 Neon 的标准价 +var neon = []price{{input: 3, cached: 0.15, output: 15}} + // hydrogen 是 Gemini API 付费层 Gemini 4 Hydrogen 的标准价 var hydrogen = []price{{input: 1.50, cached: 0.075, output: 7.50}} @@ -48,11 +51,14 @@ var prices = map[string][]price{ "gpt-oss-120b": {{input: 0.09, cached: 0.09, output: 0.36}}, "gemini-4-carbon": carbon, "gemini-4-argon": argon, + "gemini-4-neon": neon, "gemini-4-hydrogen": hydrogen, // gemini-pro-orchestrator 是官方目录中的 Orchestrator (Carbon),以 Carbon 为主、部分步骤交给 Hydrogen,按 Carbon 计 "gemini-pro-orchestrator": carbon, // gemini-pro-orchestrator-argon 是官方目录中的 Orchestrator (Argon),按 Argon 计 "gemini-pro-orchestrator-argon": argon, + // gemini-pro-orchestrator-neon 是官方目录中的 Orchestrator (Neon),按 Neon 计 + "gemini-pro-orchestrator-neon": neon, // gemini-flash-worker-agy 是官方目录中的 Gemini 4 Hydrogen (Orchestrator),按 Hydrogen 计 "gemini-flash-worker-agy": hydrogen, // gemini-3.8-flash 是 Gemini API 付费层 Gemini 3.8 Flash 的标准价,到 2026-12-31 为止与 2027-01-01 起各一档 diff --git a/internal/requestdb/requestdb_test.go b/internal/requestdb/requestdb_test.go index e9600c0..6355724 100644 --- a/internal/requestdb/requestdb_test.go +++ b/internal/requestdb/requestdb_test.go @@ -465,6 +465,8 @@ func TestCost(t *testing.T) { {"gemini-2.5-pro", 1_000_000, 0, 1_000_000, 17.5, true}, {"gemini-2.5-pro", 100_000, 0, 0, 0.125, true}, {"claude-opus-4-6-thinking", 1_000_000, 1_000_000, 0, 0.50, true}, + {"gemini-4-neon-xhigh", 2_000_000, 1_000_000, 1_000_000, 18.15, true}, + {"gemini-pro-orchestrator-neon", 1_000_000, 0, 1_000_000, 18, true}, {"gemini-4-hydrogen-xhigh", 1_000_000, 1_000_000, 1_000_000, 7.575, true}, {"gemini-flash-worker-agy", 1_000_000, 0, 0, 1.50, true}, {"gpt-6-astra", 1_000_000, 0, 0, 0, false},