alfadb
753e4c1be8
Merge main (0.2.22) into composite-ollama-unified to track upstream
2026-11-17 13:11:35 +08:00
Wesley Liddick
8b13851ac8
Merge pull request #8812 from Wei-Shaw/feat/group-force-openai-ultrafast
...
feat(groups): 分组支持强制 OpenAI Ultra Fast 档位
2026-11-17 09:37:43 +08:00
shaw
ad9eeedebb
feat(groups): 强制 Ultra Fast 按模型门控,可与强制 Fast 并存
...
- 强制 Ultra Fast 只对支持的模型(GPT-6 Astra、GPT-6.1 Sol)写入
service_tier=ultrafast;其余模型在同时开启强制 Fast 时写入 priority,
否则跟随客户端。优先级:Ultra Fast > Fast > 客户端
- 去掉 force_openai_fast 与 force_openai_ultrafast 的互斥校验
(GROUP_OPENAI_FORCED_SERVICE_TIER_CONFLICT)
- gpt-6.1-sol 的 Ultra Fast 计费由 2x 修正为 6x,与 Astra 一致;门控与
计费共用 openAIModelSupportsUltrafast,避免两者漂移
- 管理端由下拉三选一改回两个独立开关,说明文案点名支持的模型与 6x 计费
2026-11-16 21:17:31 +08:00
Wesley Liddick
ef29203002
Merge pull request #8747 from ruixingshi/fix/openai-quota-freshness
...
fix(openai): preserve quota freshness when refresh fails
2026-11-16 19:52:38 +08:00
Wesley Liddick
7a19bbef73
Merge pull request #8748 from r266-tech/codex/passthrough-model-filter
...
feat(openai): optionally filter passthrough accounts by model
2026-11-16 19:52:07 +08:00
Wesley Liddick
03c17491b3
Merge pull request #8661 from xy3xy3/feat/gemini-4-carbon-8658
...
feat(gemini): add Gemini 4 Carbon support
2026-11-16 19:51:51 +08:00
shaw
42efee245e
Merge remote-tracking branch 'gh/main' into fix-8748
2026-11-16 19:22:51 +08:00
ruixingshi
326ae1ffc9
Merge commit 'd70676756fd3a35b854d41aa46c07935bbef283f' into fix/openai-quota-freshness
2026-11-16 17:31:40 +08:00
Wesley Liddick
d70676756f
Merge pull request #8840 from r266-tech/codex/channel-bedrock-compat-toggle
...
fix(channels): persist Bedrock compatibility as a boolean
2026-11-16 16:35:31 +08:00
Wesley Liddick
568db32f22
Merge pull request #8806 from feeeei/fix/usage-account-filter-actual-cost
...
fix(usage): 按账户筛选时模型与端点分布的实际扣费不再替换为账号成本
2026-11-16 16:34:16 +08:00
Wesley Liddick
0563176a5d
Merge pull request #8740 from r266-tech/codex/gemini-usage-refetch
...
fix(accounts): keep Gemini usage bars visible during refetch
2026-11-16 16:31:47 +08:00
Wesley Liddick
d7ae0544e8
Merge pull request #8738 from r266-tech/codex/reactive-cn-quota-snapshots
...
fix(cn-quota): refresh usage cells with account snapshots
2026-11-16 16:31:31 +08:00
r266-tech
5c96ee4d29
fix(channels): persist Bedrock compatibility as a boolean
2026-11-16 05:53:22 +08:00
shaw
330198321f
feat(groups): 分组支持强制 OpenAI Ultra Fast 档位
...
OpenAI / Composite 分组新增 force_openai_ultrafast:开启后该分组经 OpenAI 账号
转发的请求强制写入 service_tier=ultrafast,覆盖客户端传入的值。
- 与 force_openai_fast 互斥,服务层同时为真返回 400
(GROUP_OPENAI_FORCED_SERVICE_TIER_CONFLICT);不支持的平台两者一并清零
- HTTP Forward、原始 body(chat / messages / 透传)与 WebSocket
response.create 三条路径统一经 openAIGroupForcedServiceTier 取强制档位
- 分组强制先写入,全局 Fast/Flex 策略随后裁决,仍可按模型白名单过滤、
拦截或降为 priority
- 计费不变:Ultrafast 按 Ultrafast 价计费,"免费 Fast"只覆盖 priority
- 迁移 251 仅新增列(默认 false);鉴权缓存快照版本升至 28
- 管理端分组表单把"强制使用 Fast"开关改为三选一:跟随客户端 / 强制 Fast /
强制 Ultra Fast
Closes #8657
2026-11-14 23:35:49 +08:00
feeeei
d05e8ef033
fix(usage): 按账户筛选时模型与端点分布的实际扣费不再替换为账号成本
...
模型统计和端点统计在仅按 account_id 过滤(无 user_id/api_key_id)时,
把 actual_cost 换成了账号成本 SUM(COALESCE(account_stats_cost, total_cost)
* COALESCE(account_rate_multiplier, 1));展开后的用户明细与分组分布用的是
真实 SUM(actual_cost),于是模型行「实际」会小于其下单个用户行的「实际」,
且与同页「成本」列数值相同。
- actual_cost 统一为用户实际扣费,账号成本由 account_cost 承载;
EndpointStat 新增 account_cost,端点分布表增加「成本」列,用户侧
/api/v1/usage/stats 清零该字段、用户页隐藏该列
- Gemini 配额用量(geminiAggregateUsage、GetGeminiUsageTotalsBatch)
显式按账号成本累计,账号用量窗口展示不变
接口口径变化:仅按账户过滤时,/admin/dashboard/models、/admin/usage/stats
的 endpoints/upstream_endpoints/endpoint_paths、/admin/accounts/:id/stats
的 models/endpoints 中 actual_cost 由账号成本改为用户实际扣费,账号成本改看
account_cost;/admin/accounts/:id/stats 的 history/summary 口径不变。
2026-11-14 21:17:57 +08:00
r266-tech
9d5fb150b9
feat(openai): optionally filter passthrough accounts by model
2026-11-13 12:14:06 +08:00
ruixingshi
e677462549
fix(openai): preserve quota freshness when refresh fails
2026-11-13 11:52:22 +08:00
r266-tech
1772430165
fix(accounts): keep Gemini usage visible during refetch
2026-11-12 10:52:23 -08:00
r266-tech
849aa593d4
fix(cn-quota): refresh usage cells with account snapshots
2026-11-12 09:14:56 -08:00
Kayokoi
7e75ee4b65
Cover wildcard rejection and corrected model input
2026-11-12 08:46:13 -08:00
Kayokoi
346a7dac02
Add Chinese whitelist validation hint
2026-11-12 08:45:43 -08:00
Kayokoi
24d77b3306
Add English whitelist validation hint
2026-11-12 08:45:09 -08:00
Kayokoi
97705d147e
fix(accounts): reject wildcard model whitelist entries
...
Prevent adding models with wildcard characters and show an info message.
2026-11-12 08:43:27 -08:00
alfadb
52f29183d5
Merge main (0.2.21) into composite-ollama-unified to track upstream
2026-11-11 15:45:28 +08:00
xy3
d70a23f84b
feat(gemini): add Gemini 4 Carbon support
2026-11-11 10:01:42 +08:00
xy3
6a2c744af3
Merge main and reconcile overlapping Claude 5.2 pricing
2026-11-10 22:24:20 +08:00
Wesley Liddick
41e4a6b108
Merge pull request #8367 from SmallNew2003/feat/settings-save-dock
...
feat(settings): 系统设置保存按钮改为底部吸附浮标
2026-11-10 21:30:08 +08:00
Wesley Liddick
48b11bf743
Merge pull request #8642 from baowl2022/fix/balance-recharge-multiplier-6-decimals
...
fix(payment): support up to 6 decimals for balance recharge multiplier
2026-11-10 21:30:02 +08:00
Wesley Liddick
51a0e89b8b
Merge pull request #8581 from Ming-Sir-69/fix/accounts-refresh-stability
...
fix(accounts): retain rows and quota values while refreshing
2026-11-10 21:29:56 +08:00
Wesley Liddick
a870836599
Merge pull request #8346 from hezhaoqian1/perf/upstream-keys-usage-index
...
perf(keys): API 密钥列表不再等待 30 天用量统计,并为其加覆盖索引
2026-11-10 21:29:51 +08:00
Wesley Liddick
d18e1dff60
Merge pull request #8566 from r266-tech/codex/easypay-refund-success-code
...
fix(payment): configure EasyPay refund success codes per instance
2026-11-10 21:29:29 +08:00
baowl2022
edd7db77fe
fix(payment): support up to 6 decimals for balance recharge multiplier
...
Persist BALANCE_RECHARGE_MULTIPLIER with up to 6 decimal places so operators
can track a live FX rate (e.g. 1 USD = 7.100000 CNY -> 0.140845). Values with
more than 6 decimals are rejected instead of being silently truncated.
Credited balance still rounds to settlement-currency precision, so order and
ledger semantics are unchanged.
Adds backend unit tests and a frontend formatter test; updates the admin input
step/preview and the checkout rate display.
2026-11-10 18:47:03 +08:00
xy3
eb2da34484
feat(gateway): support Claude Fable and Mythos 5.2
2026-11-10 12:01:31 +08:00
Wesley Liddick
ee58c0013c
Merge pull request #8606 from r266-tech/codex/preserve-openai-cache-write-ttl
...
fix(openai): preserve cache-write TTLs in usage and billing
2026-11-09 11:07:27 +08:00
r266-tech
fe093d76bd
fix(openai): preserve cache-write TTLs in usage and billing
2026-11-08 22:00:15 +08:00
William Drake and Claude Opus 5.5
4ac1675b56
feat(antigravity): query button that refreshes usage past the cache
...
Antigravity accounts had no manual query button in the usage cell, unlike Claude
and OpenAI, and the server ignored force=true for them: getAntigravityUsage
always answered from its in-memory cache while fresh. After an upgrade or an
upstream reset the cell kept old figures (an account upgraded to Ultra still
showed its Claude week at 100%).
- getAntigravityUsage takes force; cachedAntigravityUsage skips the cache when
forced. singleflight still merges concurrent fetches.
- The antigravity cell shows the same 查询/Query button (active, force=true) in
every state, including errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-07 14:33:29 -07:00
alfadb
ae9af756db
Merge main (0.2.20) into composite-ollama-unified to track upstream
2026-11-07 23:35:43 +08:00
Ming-Sir-69
4a22a75b3d
fix(accounts): retain rows and quota values while refreshing
2026-11-07 23:32:29 +08:00
r266-tech
137316a14c
fix(payment): configure EasyPay refund success codes per instance
2026-11-07 11:29:13 +08:00
Wesley Liddick
d22e0724d6
Merge pull request #8380 from danvilig/codex/improve-codex-native-tools-export
...
fix(frontend): improve Codex image and live-search exports
2026-11-07 11:27:14 +08:00
Wesley Liddick
3c46c12833
Merge pull request #8522 from william-drakemond/pr/antigravity-quota-summary
...
feat(antigravity): 按配额分组显示真实的 5 小时与每周窗口 / Show each quota group's real 5-hour and weekly window
2026-11-07 10:55:02 +08:00
hansnow
7f2876defa
fix(openai): 打通 GPT Image 2.6 原生图片链路
...
让 2.6 走 Codex Images,保留 complexity 和原生编辑选项。兼容编辑端点返回的完整 JSON,并补齐模型目录、格式处理和计费兜底。
Fixes #8526
Closes #8534
2026-11-06 15:30:49 +08:00
danvilig
7f07bca99b
Merge main and resolve Codex export model default
2026-11-05 16:19:22 +00:00
alfadb
5d8acd11d8
Merge main (0.2.19+) into composite-ollama-unified to track upstream
2026-11-05 11:37:50 +08:00
Wesley Liddick
8e92c892b4
Merge pull request #8495 from FeeiCN/patch-1
...
fix: GPT-5.5已不提供服务,默认导出模型改为GPT5.6-SOL
2026-11-05 09:34:43 +08:00
William Drake and Claude Opus 5.5
455751402f
fix(antigravity): label Pro plans' separate Argon quota as its own row
...
Pro accounts report a third quota group, gemini-argon-wtu ("For paid Pro plans, Argon
quota is separate", weekly only). It was labelled like the Claude/GPT group, so the cell
showed C·weekly twice. It now shows as A·weekly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-04 13:35:14 -07:00
William Drake and Claude Opus 5.5
bf4e16b90e
feat(antigravity): show each quota group's real 5-hour and weekly window
...
fetchAvailableModels reports one remainingFraction per model, whichever window is
tighter at the moment, so the 5-hour and the weekly limit could not be told apart:
a used-up weekly limit showed as "5h 99%" with a reset days away. The quota fetcher
now also calls v1internal:retrieveUserQuotaSummary, which reports every window of
every group (Gemini models; Claude and GPT models), and returns it as
antigravity_quota_groups. The account usage cell shows G·5h / G·weekly and
C·5h / C·weekly from it, and keeps the per-model bars when the summary is missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-04 13:35:14 -07:00
Wesley Liddick
b9d6ff5ca2
Merge pull request #8504 from feeeei/feat/registration-email-blacklist
...
feat(auth): 注册邮箱精确黑名单,保存时可批量禁用命中的已注册用户
2026-11-04 21:01:00 +08:00
feeeei
721dfb282e
feat(auth): 注册邮箱精确黑名单,保存时可批量禁用命中的已注册用户
...
- 系统设置 → 注册设置新增「邮箱黑名单(精确匹配)」,弹窗编辑、批量粘贴,上限 20000 条,
名单存于 settings 键 registration_email_blacklist,由专用接口整体读写;运行时读 60s TTL
进程内缓存,保存后本实例立即生效
- 按收件箱身份匹配(复用 NormalizeEmailForAliasDedup):Gmail 点号、googlemail.com 与 +后缀
变体视为同一邮箱
- 邮箱注册、发验证码、第三方登录补建账号、绑定/换绑邮箱命中时返回 EMAIL_BLOCKED;
已验证邮箱的 OAuth 登录只在新建账号时拦截,已有账号是否可用由账号状态决定
- 保存后对新增项查找仍启用的普通用户并弹窗确认批量禁用(跳过管理员、已禁用与已删除用户),
与单个禁用一样在同一事务内吊销 MCP 授权,禁用后清理认证缓存;也可随时对整份名单手动检查
2026-11-04 17:52:05 +08:00
Wesley Liddick
6f92090d7f
Merge pull request #8462 from feeeei/feat/openai-image-size-tier-routing
...
feat(openai): 生图账号按 1K/2K/4K 尺寸档位分流
2026-11-04 17:11:58 +08:00