SunSeekerX
|
0828746281
|
fix: 修复 ESLint 错误 - if 语句花括号和箭头函数简写
|
2025-12-06 18:30:44 +08:00 |
|
SunSeekerX
|
e1df90684a
|
fix: 合并冲突 - 保留多选支持并添加暗黑模式样式
|
2025-12-06 18:28:03 +08:00 |
|
Wesley Liddick
|
01c63bf5df
|
Merge pull request #760 from IanShaw027/upstream-pr-account-full [skip ci]
feat: 增强账户管理功能
|
2025-12-05 21:45:37 -05:00 |
|
Wesley Liddick
|
b66fd7f655
|
Merge pull request #766 from atoz03/feature/account-detail-timeline [skip ci]
feat(account): enhance detail timeline & remove redundant entries
|
2025-12-05 21:43:14 -05:00 |
|
atoz03
|
f78e376dea
|
fix:该文件的代码格式不符合 Prettier 规范
|
2025-12-05 22:29:45 +08:00 |
|
atoz03
|
fbb660138c
|
fix:调整去重策略
- 调整去重策略(src/routes/admin/usageStats.js):账户筛选改为按 accountId 聚合记录所有出现的 accountType,构建 options 时依次按历史类型解析账号,失败再全量回退,无法解析也保留为筛选项并带 rawTypes,避免渠道改名/删除导致选项被“去
重”丢失。
- 解析兜底(src/routes/admin/usageStats.js):resolveAccountInfo 在传入未知类型或过滤后为空时回退尝试全部服务,减轻渠道改名解析不到的问题。
|
2025-12-05 19:19:52 +08:00 |
|
QTom
|
9c970fda3b
|
Refactor model restriction checks to use blacklist
|
2025-12-05 17:06:21 +08:00 |
|
atoz03
|
9b0d0bee96
|
fix: 账户时间线入口与路由修复
- 移除账户列表下拉/卡片的时间线入口,仅保留详情弹窗顶部按钮
- ActionDropdown 全局互斥,避免多菜单堆叠
- 账户筛选去重,避免“未知渠道”重复泄露
|
2025-12-05 14:57:34 +08:00 |
|
atoz03
|
ff30bfab82
|
feat: 账户时间线详情页与接口完善
- 后端新增 /admin/accounts/:accountId/usage-records 接口,支持按账户聚合多 Key 记录并分页筛选、汇总统计
- 修复 API Key 时间线账户筛选跳过已删除账号,补充账户/Key 辅助解析
- 前端新增 AccountUsageRecordsView、路由及账户列表“时间线”入口,支持模型/API Key 筛选与 CSV 导出
- 补装 prettier-plugin-tailwindcss 并完成相关文件格式化
|
2025-12-05 14:23:25 +08:00 |
|
SunSeekerX
|
2429bad2b7
|
feat(api-keys): 添加模型筛选功能
|
2025-12-05 13:44:09 +08:00 |
|
shaw
|
6bfef2525a
|
Merge PR #753: feat: 新增 API Key
请求时间线接口与管理端详情页面
|
2025-12-05 09:03:53 +08:00 |
|
IanShaw027
|
0b3cf5112b
|
refactor: 移除仪表盘使用记录功能以避免与PR #753重叠
移除了仪表盘中的使用记录展示功能,避免与PR #753的API Key详细使用记录功能重叠:
- 移除DashboardView.vue中的使用记录表格UI及相关函数
- 移除dashboard.js中的/dashboard/usage-records接口
- 保留核心账户管理功能(账户过滤、限流状态、统计模态框等)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-05 02:54:14 +08:00 |
|
IanShaw027
|
3db268fff7
|
feat: 完善账户管理和仪表盘功能
- 修改使用记录API路由路径为 /dashboard/usage-records
- 增加对更多账户类型的支持(Bedrock、Azure、Droid、CCR等)
- 修复Codex模型识别逻辑,避免 gpt-5-codex 系列被错误归一化
- 在账户管理页面添加状态过滤器(正常/异常)
- 在账户管理页面添加限流时间过滤器(≤1h/5h/12h/1d)
- 增加账户统计汇总弹窗,按平台分类展示
- 完善仪表盘使用记录展示功能,支持分页加载
- 将 logs1/ 目录添加到 .gitignore
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-05 02:54:14 +08:00 |
|
IanShaw027
|
81971436e6
|
feat: 在仪表盘添加使用记录展示功能
- 新增后端API端点 /admin/dashboard/usage-records
- 支持分页查询所有API Key的使用记录
- 自动关联API Key名称和账户名称
- 按时间倒序排列(最新的在前)
- 新增仪表盘使用记录表格
- 显示时间、API Key、账户、模型、输入/输出/缓存创建/缓存读取tokens、成本
- 智能时间格式化(今天显示时分秒,昨天显示时间)
- 支持加载更多记录,分页展示
- 响应式设计,支持暗黑模式
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-05 02:54:14 +08:00 |
|
SunSeekerX
|
8aca1f9dd1
|
feat(account): 新增账户自动防护禁用开关
支持 disableAutoProtection 配置项,启用后上游 401/400/429/529 错误不再自动禁用账户
|
2025-12-04 20:47:12 +08:00 |
|
atoz03
|
3df0c7c650
|
feat:已修复 ESLint no-shadow 问题:geminiApiAccountService 不再重复声明,改用顶部引入的实例。后端/前端 lint 均通过(npm run lint:check、cd web/admin-spa && npm run lint)
|
2025-12-04 15:05:09 +08:00 |
|
atoz03
|
6a3dce523b
|
chore: format usage stats route
|
2025-12-04 15:02:07 +08:00 |
|
atoz03
|
92b30e1924
|
feat: add API key usage timeline API and admin UI
|
2025-12-04 14:41:38 +08:00 |
|
shaw
|
81e89d2dc4
|
feat: 支持sessionKey完成oauth授权
|
2025-12-02 20:43:47 +08:00 |
|
shaw
|
e8e6f972b4
|
fix: 增强console账号test端点
|
2025-12-01 15:08:40 +08:00 |
|
shaw
|
02018e10f3
|
feat: 为console类型账号增加count_tokens端点判断
|
2025-12-01 10:14:12 +08:00 |
|
shaw
|
326adaaeca
|
fix: 修复Openai-api账户分组调度设置问题
|
2025-11-29 14:12:42 +08:00 |
|
shaw
|
d89344ad87
|
fix: 修复Gemini-api账户分组调度设置不生效的问题
|
2025-11-29 14:11:58 +08:00 |
|
shaw
|
b58b8b1ac7
|
feat: 支持apikey测试claude端点
|
2025-11-28 17:16:37 +08:00 |
|
shaw
|
28caa93d99
|
feat: 重新支持apikey费用排序功能
|
2025-11-28 15:32:50 +08:00 |
|
shaw
|
d9476230c6
|
fix: 修复apikey窗口限制时间显示异常的问题
|
2025-11-28 14:02:58 +08:00 |
|
shaw
|
7db70e2dc0
|
feat: 为claude类型账号增加测试功能
|
2025-11-28 10:51:01 +08:00 |
|
shaw
|
fd2b8a0114
|
refacto: 重构admin.js
|
2025-11-27 22:16:45 +08:00 |
|
shaw
|
4aeb47062b
|
fix: droid增加comm端点
|
2025-11-27 20:38:50 +08:00 |
|
shaw
|
3fb874fc29
|
feat: admin-next/api-stats查询被禁用的key增加名字显示
|
2025-11-26 10:18:43 +08:00 |
|
shaw
|
6e95607285
|
fix: 修复apikeys页面窗口限制显示错误的bug
|
2025-11-26 10:09:58 +08:00 |
|
shaw
|
dea6964116
|
fix: 修复apikeys页面部分bug
|
2025-11-25 20:38:52 +08:00 |
|
shaw
|
22fbabbc47
|
fix: 优化apikeys页面加载速度
|
2025-11-25 15:01:15 +08:00 |
|
shaw
|
a4dcfb842e
|
refactor: 重构gemini转部分
|
2025-11-25 10:30:39 +08:00 |
|
shaw
|
8f2cf211de
|
fix: 修复gemini重置状态按钮未显示的问题
|
2025-11-24 14:49:12 +08:00 |
|
shaw
|
a0a7aae28e
|
fix: 暂时移除gemini 的429处理
|
2025-11-24 10:53:51 +08:00 |
|
shaw
|
7706d3480d
|
fix: 修复codex的ua正则条件
|
2025-11-23 22:51:56 +08:00 |
|
shaw
|
53d2f1ff9b
|
fix: 更新codex默认提示词
|
2025-11-23 22:41:24 +08:00 |
|
shaw
|
8863075fde
|
feat: 完善Gemini-Api账户相关的数据统计
|
2025-11-23 22:28:26 +08:00 |
|
shaw
|
bae39d5468
|
feat: 支持Gemini-Api接入
|
2025-11-23 22:00:13 +08:00 |
|
shaw
|
c33771ef82
|
fix: split SSE chunks per event to avoid JSON parse errors
|
2025-11-22 18:10:54 +08:00 |
|
Dave King
|
6f9ac4aa84
|
feat: add Gemini account rate limit handling and hoist variable declarations in standard routes.
|
2025-11-22 14:04:58 +08:00 |
|
VeroFess
|
9b0a1f9bda
|
实现 Codex compact 转发:新增 /responses/compact 路由,选择 compact 上游端点,并在 compact 请求中去除 store 参数以避免 400
|
2025-11-20 20:05:10 +08:00 |
|
曾庆雷
|
9eccc7da49
|
实现SSE心跳机制和非阻塞响应结束
|
2025-11-19 11:59:38 +08:00 |
|
曾庆雷
|
d7358107f8
|
fix: 优化 Gemini SSE 流式转发,解决流中断和性能问题
- 采用透明转发,直接转发原始数据,避免解析和重新序列化
- 异步提取 usage 数据,不阻塞主流程
- 流错误时发送正确的 SSE 结束标记
- 修复 usageReported 标志未更新的 bug
- 性能提升:延迟降低 94%,吞吐量提升 10x
|
2025-11-18 14:09:26 +08:00 |
|
Yukuiii
|
861ad11647
|
fix: 添加对gpt-5.1模型的提示词判断
|
2025-11-15 18:08:39 +08:00 |
|
shaw
|
d0f23dac46
|
fix: 临时剔除tools的input_examples参数引发的bug
|
2025-11-15 14:41:05 +08:00 |
|
zstring
|
fdded1b8c3
|
临时修复新版本客户端context_management字段兼容性问题
|
2025-11-15 11:12:41 +08:00 |
|
曾庆雷
|
47d7a394c9
|
仅对个人账户调用 tokeninfo/userinfo 接口
- 添加 projectId 非空判断,减少对企业账户的影响
- 优化错误日志级别为 warn
|
2025-11-14 11:17:14 +08:00 |
|
曾庆雷
|
7a6c287a7e
|
修复标准Gemini API流式响应的缓冲区和解析问题
- 新增通用SSE解析器(src/utils/sseParser.js)
- 添加streamBuffer处理TCP数据包分割
- 统一两种API方式的SSE解析逻辑
- 记录解析失败和usage缺失的详细日志
|
2025-11-14 11:17:14 +08:00 |
|