Wesley Liddick
3cc407bc0e
Merge pull request #900 from ischanx/feat/admin-bind-subscription-group
...
feat: 允许管理员为持有有效订阅的用户绑定订阅类型分组
2026-03-10 11:20:47 +08:00
shaw
00a0a12138
feat: Anthropic平台可配置 anthropic-beta 策略
2026-03-10 11:20:10 +08:00
ischanx
b08767a4f9
fix: avoid admin subscription binding regressions
2026-03-10 10:53:54 +08:00
Wesley Liddick
ac6bde7a98
Merge pull request #872 from StarryKira/fix/oauth-linuxdo-invitation-required
...
fix: Linux.do OAuth 注册支持邀请码两步流程 (fix #836 )
2026-03-10 09:10:35 +08:00
Wesley Liddick
d2d41d68dd
Merge pull request #894 from touwaeriol/pr/startup-concurrency-cleanup
...
feat: cleanup stale concurrency slots on startup
2026-03-10 09:08:33 +08:00
Wesley Liddick
944b7f7617
Merge pull request #904 from james-6-23/fix-pool-mode-retry
...
fix: OpenAI临时性400错误支持池模式同账号重试 & HelpTooltip层级修复
2026-03-10 09:08:12 +08:00
Wesley Liddick
53825eb073
Merge pull request #903 from touwaeriol/fix/openai-responses-sse-max-line-size-v2
...
fix: use shared max_line_size config for OpenAI Responses SSE scanner
2026-03-10 09:06:48 +08:00
kyx236
5fa22fdf82
fix: OpenAI临时性400错误支持池模式同账号重试 & HelpTooltip层级修复
...
1. 识别OpenAI "An error occurred while processing your request" 临时性400错误
并触发failover,同时在池模式下标记RetryableOnSameAccount,允许同账号重试
2. ForwardAsAnthropic路径同步支持临时性400错误的识别和同账号重试
3. HelpTooltip组件使用Teleport渲染到body,修复在dialog内被裁切的问题
2026-03-10 03:00:58 +08:00
erio
bcaae2eb91
fix: use shared max_line_size config for OpenAI Responses SSE scanner
...
Two SSE scanners in openai_gateway_messages.go were hardcoded to 1MB
while all other scanners use defaultMaxLineSize (500MB) with config
override. This caused Responses API streams to fail on large payloads.
2026-03-10 02:50:04 +08:00
ischanx
767a41e263
feat: 允许管理员为持有有效订阅的用户绑定订阅类型分组
...
之前管理员无法通过 API 密钥管理将用户绑定到订阅类型分组(直接返回错误)。
现在改为检查用户是否持有该分组的有效订阅,有则允许绑定,无则拒绝。
- admin_service: 新增 userSubRepo 依赖,替换硬拒绝为订阅校验
- admin_service: 区分 ErrSubscriptionNotFound 和内部错误,避免 DB 故障被误报
- wire_gen/api_contract_test: 同步新增参数
- UserApiKeysModal: 管理员分组下拉不再过滤订阅类型分组
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-10 00:51:43 +08:00
QTom
252d6c5301
feat: 支持批量重置状态和批量刷新令牌
...
- 提取 refreshSingleAccount 私有方法复用单账号刷新逻辑
- 新增 BatchClearError handler (POST /admin/accounts/batch-clear-error)
- 新增 BatchRefresh handler (POST /admin/accounts/batch-refresh)
- 前端 AccountBulkActionsBar 添加批量重置状态/刷新令牌按钮
- AccountsView 添加 handler 支持 partial success 反馈
- i18n 中英文补充批量操作相关翻译
2026-03-09 21:54:27 +08:00
QTom
7a4e65ad4b
feat: 导入账号时 best-effort 从 id_token 提取用户信息
...
提取 DecodeIDToken(跳过过期校验)供导入场景使用,
ParseIDToken 复用它并保留原有过期检查行为。
导入 OpenAI/Sora OAuth 账号时自动补充缺失的 email、
plan_type、chatgpt_account_id 等字段,不覆盖已有值。
2026-03-09 21:53:46 +08:00
QTom
a582aa89a9
feat: 从 OpenAI JWT 提取 chatgpt_plan_type 并在前端展示
...
OAuth 授权和 token 刷新时从 id_token 的 OpenAI auth claim 中
提取 chatgpt_plan_type(plus/team/pro/free),存入 credentials,
账号管理页面 PlatformTypeBadge 显示订阅类型。
2026-03-09 21:53:46 +08:00
erio
a88698f3fc
feat: cleanup stale concurrency slots on startup
...
When the service restarts, concurrency slots from the old process
remain in Redis, causing phantom occupancy. On startup, scan all
concurrency sorted sets and remove members with non-current process
prefix, then clear orphaned wait queue counters.
Uses Go-side SCAN to discover keys (compatible with Redis client
prefix hooks in tests), then passes them to a Lua script for
atomic member-level cleanup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 19:55:18 +08:00
shaw
25178cdbe1
fix: 修复gpt->claude同步请求返回sse的bug
2026-03-09 15:58:44 +08:00
shaw
a461538d58
fix: 修复gpt->claude转换无法命中codex缓存问题
2026-03-09 15:08:37 +08:00
Elysia
b43ee62947
fix CI/CD Error
2026-03-09 13:13:39 +08:00
shaw
ebe6f418f3
fix: gpt->claude格式转换对齐effort映射和fast
2026-03-09 11:42:35 +08:00
Wesley Liddick
391e79f8ee
Merge pull request #875 from mt21625457/fix/openai-fast-billing-clean
...
fix(billing): 修复 OpenAI fast 档位计费并补齐展示
2026-03-09 10:32:18 +08:00
shaw
c7fcb7a84b
feat: apikey限额支持查询重置时间
2026-03-09 10:22:24 +08:00
yangjianbo
87f4ed591e
fix(billing): 修复 OpenAI fast 档位计费并补齐展示
...
- 打通 service_tier 在 OpenAI HTTP、WS、passthrough 与 usage 记录中的传递
- 修正 priority/flex 计费逻辑,并将 fast 归一化为 priority
- 在用户端和管理端补齐服务档位与计费明细展示
- 补齐前后端测试,并修复 WS 限流信号重复持久化导致的全量回归失败
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 09:51:26 +08:00
shaw
440d2e28ed
fix: 恢复context-1m-2025-08-07在oauth账号中传递
2026-03-09 09:29:33 +08:00
Wesley Liddick
6cb8980404
Merge pull request #807 from touwaeriol/fix/openai-passthrough-v2
...
fix(openai): remove misplaced passthrough check from isModelSupportedByAccount
2026-03-09 09:06:35 +08:00
Wesley Liddick
c74d451fa2
Merge pull request #874 from touwaeriol/pr/increase-sse-max-line-size
...
fix: increase SSE scanner max line size from 40MB to 500MB
2026-03-09 09:03:39 +08:00
Wesley Liddick
12d743fb35
Merge pull request #868 from touwaeriol/pr/bump-antigravity-version
...
chore: bump Antigravity user agent version to 1.20.4
2026-03-09 09:03:25 +08:00
Wesley Liddick
6acb9f7910
Merge pull request #864 from StarryKira/fix/clear-thinking-context-management
...
[Fix] Fix issue #851
2026-03-09 09:02:58 +08:00
erio
eb6f5c6927
test: update UserAgent version assertion to match 1.20.4
2026-03-09 08:59:21 +08:00
erio
7ccb4c8ea3
chore: bump Antigravity user agent version to 1.20.4
2026-03-09 08:59:21 +08:00
erio
4ce986d47d
fix: also update viper default max_line_size from 40MB to 500MB
...
The viper config default (config.go) was overriding the constant
in gateway_service.go. Both must be updated to take effect.
2026-03-09 08:56:54 +08:00
erio
91ef085d7d
fix: increase SSE scanner max line size from 40MB to 500MB
...
4K image base64 data can exceed 40MB limit, causing "bufio.Scanner:
token too long" errors. Scanner is adaptive (starts at 64KB, grows
as needed), so increasing the cap has no impact on normal responses.
2026-03-09 08:56:54 +08:00
Wesley Liddick
97aaa24733
Merge pull request #858 from james-6-23/fix/pool-mode-03bf3485
...
支持 API Key 上游池模式的同账号重试次数配置与自定义错误策略
2026-03-09 08:48:53 +08:00
Wesley Liddick
faf6441633
Merge pull request #854 from james-6-23/main
...
feat(admin): 支持定时测试自动恢复并统一账号恢复入口
2026-03-09 08:48:36 +08:00
shaw
00c151b463
feat: gpt->claude格式转换支持图片识别
2026-03-09 08:44:09 +08:00
Elysia
106b20cdbf
fix claudecode review bug
2026-03-09 01:18:49 +08:00
Elysia
c069b3b1e8
fix issue #836 linux.do注册无需邀请码
2026-03-09 00:35:34 +08:00
时雨遥
fa72f1947a
Update backend/internal/service/gateway_request_test.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-08 21:21:36 +08:00
时雨遥
9ee7d3935d
Update backend/internal/service/gateway_request.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-08 21:21:28 +08:00
Elysia
1071fe0ac7
add test file
2026-03-08 21:08:09 +08:00
Elysia
ca3f497b56
fix issue #851
2026-03-08 21:00:34 +08:00
Wesley Liddick
313afe14ce
Merge pull request #842 from pkssssss/fix/openai-ws-usage-refresh
...
fix: 修复 OpenAI WS 用量窗口刷新与限额状态不同步
2026-03-08 20:34:54 +08:00
Wesley Liddick
01180b316f
Merge pull request #841 from touwaeriol/feature/account-periodic-quota
...
feat(account): 为 API Key 账号新增日/周周期性配额限制
2026-03-08 20:34:15 +08:00
kyx236
e643fc382c
feat: 支持 API Key 上游池模式同账号重试次数配置与自定义错误策略
2026-03-08 14:12:17 +08:00
kyx236
0c29468f90
feat(admin): 支持定时测试自动恢复并统一账号恢复入口
...
- 为定时测试计划增加 auto_recover 配置,补齐前后端类型、接口、仓储与数据库迁移
- 在定时测试成功后自动恢复账号 error、rate-limit 等可恢复运行时状态
- 新增 /admin/accounts/:id/recover-state 接口,合并原有重置状态与清限流操作
- 更新账号管理菜单与定时测试面板,补充自动恢复开关、说明提示和状态展示
- 补充账号恢复、限流清理与仓储同步相关测试
2026-03-08 06:59:53 +08:00
神乐
9301dae63e
fix: 修复 OpenAI WS 用量刷新遗漏场景
2026-03-08 04:37:20 +08:00
神乐
785e049af3
Merge branch 'Wei-Shaw:main' into fix/simple-mode-admin-concurrency-30
2026-03-08 00:16:59 +08:00
神乐
be4e49e6d7
Merge branch 'Wei-Shaw:main' into fix/openai-ws-usage-refresh
2026-03-08 00:16:51 +08:00
神乐
1307d604e7
fix: 补齐旧账号的 OpenAI 限流补偿
2026-03-08 00:14:15 +08:00
神乐
45d57018eb
fix: 修复 OpenAI WS 限流状态与调度同步
2026-03-07 23:59:39 +08:00
shaw
03bf348530
fix(lint): gofmt formatting fixes for 3 files
...
Align struct field assignments and fix indentation detected by
golangci-lint v2.9's gofmt checker.
2026-03-07 23:24:09 +08:00
shaw
a3791104f9
feat: 支持后台设置是否启用整流开关
2026-03-07 21:55:38 +08:00