- 13 Mar, 2026 6 commits
-
-
Wesley Liddick authored
feat(redeem): support subscription type in create-and-redeem API
-
erio authored
Add group_id and validity_days fields to CreateAndRedeemCodeRequest, enabling subscription-type redemption codes to be created and redeemed in a single API call. - Type defaults to "balance" when omitted for backward compatibility - Subscription type requires group_id (non-nil) and validity_days (>0) - Existing balance/concurrency callers are unaffected
-
Wesley Liddick authored
feat(groups): add rate multipliers management modal
-
Wesley Liddick authored
fix: 管理员重置配额补全 monthly 字段并修复 ristretto 缓存异步问题 fix issue #964
-
haruka authored
- 后端 handler:ResetSubscriptionQuotaRequest 新增 Monthly 字段, 验证逻辑扩展为 daily/weekly/monthly 至少一项为 true - 后端 service:AdminResetQuota 新增 resetMonthly 参数, 调用 ResetMonthlyUsage;重置后追加 subCacheL1.Wait(), 保证 ristretto Del() 的异步删除立即生效,消除重置后 /v1/usage 返回旧用量数据的竞态窗口 - 后端测试:更新存量测试用例匹配新签名,补充 TestAdminResetQuota_ResetMonthlyOnly / TestAdminResetQuota_ResetMonthlyUsageError 两个新用例 - 前端 API:resetQuota options 类型新增 monthly: boolean - 前端视图:confirmResetQuota 改为同时重置 daily/weekly/monthly - i18n:中英文确认提示文案更新,提及每月配额 Co-Authored-By:Claude Sonnet 4.6 <noreply@anthropic.com>
-
Wesley Liddick authored
feat: GPT Private设置数据不用于训练
-
- 12 Mar, 2026 17 commits
-
-
erio authored
Add a dedicated modal in group management for viewing, adding, editing, and deleting per-user rate multipliers within a group. Backend: - GET /admin/groups/:id/rate-multipliers - list entries with user details - PUT /admin/groups/:id/rate-multipliers - batch sync (full replace) - DELETE /admin/groups/:id/rate-multipliers - clear all entries - Repository: GetByGroupID, SyncGroupRateMultipliers methods on user_group_rate_multipliers table (same table as user-side rates) Frontend: - New GroupRateMultipliersModal component with: - User search and add with email autocomplete - Editable rate column with local edit mode (cancel/save) - Batch adjust: multiply all rates by a factor - Clear all (local operation, requires save to persist) - Pagination (10/20/50 per page) - Platform icon with brand colors in group info bar - Unsaved changes indicator with revert option - Unit tests for all three backend endpoints
-
QTom authored
privacy_mode 改为由 TokenRefreshService 在 token 刷新后异步补设。 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
QTom authored
-
Wesley Liddick authored
fix Antigravity gemini thought signature fix
-
Wesley Liddick authored
精准收紧 accounts.extra 观测字段触发的调度重建
-
haruka authored
-
ius authored
-
ius authored
-
haruka authored
-
Wesley Liddick authored
fix: 修复gpt-5.2以上模型映射到gpt-5.2以下时verbosity参数引发的报错
-
Wesley Liddick authored
feat(admin): add metric toggle to usage charts
-
Wesley Liddick authored
fix: 为 Anthropic Messages API 流式转发添加下游 keepalive ping
-
Wesley Liddick authored
降低 ops_error_logs 与 scheduler_outbox 的数据库写放大
-
Wesley Liddick authored
降低 admin/dashboard 读路径压力,避免 snapshot-v2 并发击穿
-
Wesley Liddick authored
降低 quota 与 Codex 快照热路径的数据库写放大
-
Wesley Liddick authored
feat: 修复 Gemini 生图接口并新增前端生图测试能力
-
Wesley Liddick authored
Feature/管理员可以重置账号额度
-
- 11 Mar, 2026 17 commits
-
-
CoolCoolTomato authored
-
shaw authored
将 /v1/chat/completions 端点从 ResponseWriter 劫持模式重构为独立的 类型安全转换路径,与 Anthropic Messages 端点架构对齐: - 在 apicompat 包新增 Chat Completions 完整类型定义和双向转换器 - 新增 ForwardAsChatCompletions service 方法,走 Responses API 上游 - Handler 改为独立的账号选择/failover 循环,不再劫持 Responses handler - 提取 handleCompatErrorResponse 为 Chat Completions 和 Messages 共用 - 删除旧的 forwardChatCompletions 直传路径及相关死代码
-
CoolCoolTomato authored
-
ius authored
-
amberwarden authored
Anthropic Messages API 的流式转发路径(gateway_service.go)在上游长时间 无数据时(如 Opus extended thinking 阶段)不会向下游发送任何内容,导致 Cloudflare Tunnel 等代理因连接空闲而断开。 复用已有的 StreamKeepaliveInterval 配置(默认 10 秒),在 select 循环中 添加 keepalive 分支,定时发送 Anthropic 原生格式的 ping 事件保活,与 OpenAI 兼容路径的实现模式保持一致。 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
Wesley Liddick authored
feat: 添加 OpenAI Chat Completions 兼容端点(基于 #648,修复编译错误和运行时 panic)
-
ius authored
-
Rose Ding authored
-
ius authored
-
Rose Ding authored
-
ius authored
-
ius authored
-
Peter authored
-
ius authored
-
Rose Ding authored
-
Wesley Liddick authored
fix: 补充缺失的组级和账户级运维告警指标
-
ius authored
-