DaydreamCoding
|
6b39b344d8
|
feat(quota): 用户 × 平台 USD 配额
为用户在 anthropic/openai/gemini/antigravity 四个平台上提供日/周/月
三个窗口的 USD 配额管控。配额语义:未设置=不限制,0=禁用,>0=美元上限。
两层模型:
- 配置层:系统默认配额,以及 email/linuxdo/oidc/wechat/github/google/
dingtalk 七个鉴权来源的默认配额,存于 settings,以嵌套 JSON 整体读写
(系统 1 个 key + 每个来源 1 个 key),整体替换语义。
- 运行时层:user_platform_quota 表按用户记录实际配额,与配置层解耦。
后端:新增 ent schema 与 140_user_platform_quotas.sql 迁移、repository
与 service 端口、计费链路集成、管理端与用户端读写接口。
前端:管理端设置页配额编辑、用户配额管理 Modal、用户 Dashboard 展示、
中英文案。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-26 10:49:20 +08:00 |
|
shaw
|
1e406fed52
|
fix: optimize OpenAI account cooldown scheduling
|
2026-05-23 10:18:43 +08:00 |
|
gaoren002
|
888cd8092d
|
fix(openai): surface image moderation errors
|
2026-05-20 09:19:20 +00:00 |
|
name
|
2eb622f2f6
|
Remove ops retry replay storage
|
2026-05-19 19:37:41 +08:00 |
|
benjamin
|
429adbc721
|
fix: 标记 OpenAI 本地调度容量错误
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-05-18 16:52:20 +08:00 |
|
shaw
|
fff4a300c6
|
feat(risk-control): add content moderation audit
|
2026-05-07 09:14:47 +08:00 |
|
2ue
|
6faa344916
|
feat: add OpenAI image generation controls
|
2026-05-05 03:26:54 +08:00 |
|
gaoren002
|
615557ec20
|
fix(openai): avoid implicit image sticky sessions
|
2026-04-26 17:09:41 +00:00 |
|
james-6-23
|
dc5d42addc
|
feat(rpm): RPM 限流模块优化
P0:
- rpm_override 嵌入 Auth Cache Snapshot,消除每请求 DB 查询 (snapshot v6→v7)
- 429 RPM 响应返回 Retry-After 头(当前分钟剩余秒数)
P1:
- ClearAll 按钮直连 DELETE API,带 loading 防重复
- 新增 GET /admin/users/:id/rpm-status 管理员 RPM 用量查询端点
优化:
- checkRPM 从级联互斥改为并行取最严,user.rpm_limit 作为全局硬上限始终生效
- Override/Group 变更后自动失效 auth cache
- fail-open 语义不变,Redis 故障不阻塞业务
|
2026-04-23 16:34:37 +08:00 |
|
lucas morgan
|
c548021921
|
feat(openai): 同步生图 API 支持并接入图片计费调度
- 同步 OpenAI 图片生成与编辑接口
- 接入图片请求解析、账号调度、转发与用量记录
- 接入图片计费与图片用量落库
- 限制 OAuth 生图仅支持无显式模型和尺寸的基础请求
|
2026-04-22 12:30:08 +08:00 |
|