Chapoly1305
cfeb4658ad
feat: 模型使用分布支持自定义时间范围
...
- 后端:getPublicModelStats 支持 today/24h/7d/30d/all 五种时间范围
- 后端:新增 publicStatsModelDistributionPeriod 设置项
- 前端:设置页面添加横向选项卡式时间范围选择器
- 前端:公开统计组件显示当前数据时间范围标签
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-23 21:43:26 -05:00
Chapoly1305
0d94d3b449
feat: 公开统计功能增强 - 独立设置栏目和双Y轴折线图
...
- 将公开统计设置从品牌设置移至独立栏目
- 用三合一双Y轴折线图替代条形图(Chart.js + vue-chartjs)
- 左Y轴显示Tokens,右Y轴显示活跃数量
- 添加暂无数据状态的友好提示
- 修复Y轴可能显示负数的问题(设置min:0)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-23 18:58:20 +00:00
Chapoly1305
0c1bdf53d6
feat: 丰富公开统计概览数据并添加可选显示项
...
- 后端:添加 OEM 设置选项控制公开统计显示内容
- publicStatsShowModelDistribution: 模型使用分布
- publicStatsShowTokenTrends: Token 使用趋势(近7天)
- publicStatsShowApiKeysTrends: API Keys 活跃趋势(近7天)
- publicStatsShowAccountTrends: 账号活跃趋势(近7天)
- 后端:扩展 /admin/public-stats API 返回趋势数据
- 前端:PublicStatsOverview 组件支持显示趋势柱状图
- 前端:设置页面添加公开统计选项复选框
- 前端:从登录页移除公开统计概览(已移至首页)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-23 17:42:14 +00:00
Chapoly1305
ab474c3322
feat: 将公开统计概览移至首页状态概览标签
...
- 在首页添加"状态概览"标签,作为默认显示页面
- 修复 PublicStatsOverview.vue 属性顺序 lint 错误
- 修复 LoginView.vue prettier 格式问题
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-23 17:30:00 +00:00
Claude
82d1489a55
feat: 添加公开统计概览功能
...
- 新增 GET /admin/public-stats 公开端点,返回脱敏的服务统计数据
- 在 OEM 设置中添加 publicStatsEnabled 开关
- 创建 PublicStatsOverview 组件,展示服务状态、平台可用性、今日统计和模型使用分布
- 在登录页集成公开统计展示(当 publicStatsEnabled 开启时)
- 在设置页品牌设置中添加公开统计开关
2025-12-23 01:48:55 +00:00
github-actions[bot]
0173ab224b
chore: sync VERSION file with release v1.1.238 [skip ci]
v1.1.238
2025-12-21 14:41:29 +00:00
shaw
11fb77c8bd
chore: trigger release [force release]
2025-12-21 22:41:03 +08:00
shaw
3d67f0b124
chore: update readme
2025-12-21 22:37:13 +08:00
shaw
84f19b348b
fix: 适配cc遥测端点
2025-12-21 22:29:36 +08:00
shaw
8ec8a59b07
feat: claude账号新增支持拦截预热请求
2025-12-21 22:28:22 +08:00
shaw
00d8ac4bec
Merge branch 'main' into dev
2025-12-21 21:35:16 +08:00
github-actions[bot]
5863816882
chore: sync VERSION file with release v1.1.237 [skip ci]
v1.1.237
2025-12-19 14:30:21 +00:00
shaw
638d2ff189
feat: 支持claude单账户开启串行队列
2025-12-19 22:29:57 +08:00
github-actions[bot]
fa2fc2fb16
chore: sync VERSION file with release v1.1.236 [skip ci]
v1.1.236
2025-12-19 07:50:25 +00:00
Wesley Liddick
6d56601550
Merge pull request #821 from guoyongchang/feat/cron-test-support
...
feat: Claude账户定时测试功能
2025-12-19 02:50:08 -05:00
guoyongchang
dd8a0c95c3
fix: use template literals instead of string concatenation
...
- Convert string concatenation to template literals per ESLint prefer-template rule
- Fixes ESLint errors in sessionKeyPrefix logging (lines 281, 330)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2025-12-19 15:46:38 +08:00
guoyongchang
126eee3712
feat/cron-test-support format fix.
2025-12-19 14:59:47 +08:00
guoyongchang
26bfdd6892
[feat/cron-test-support]optimize.
2025-12-19 14:03:31 +08:00
guoyongchang
cd3f51e9e2
refactor: optimize cron test support feature
...
**优化内容:**
1. **验证和安全性加强**
- 移除cron验证重复,统一使用accountTestSchedulerService.validateCronExpression()方法
- 添加model参数类型和长度验证(max 256 chars)
- 限制cronExpression长度至100字符防止DoS攻击
- 双层验证:service层和route层都进行长度检查
2. **性能优化**
- 优化_refreshAllTasks()使用Promise.all()并行加载所有平台配置(之前是顺序加载)
- 改进错误处理,平台加载失败时继续处理其他平台
3. **数据管理改进**
- 为test config添加1年TTL过期机制(之前没有过期设置)
- 保证test history已有30天TTL和5条记录限制
4. **错误响应标准化**
- 统一所有API响应格式,确保error状态都包含message字段
- 改进错误消息的可读性和上下文信息
5. **用户体验改进**
- Vue组件使用showToast()替代原生alert()
- 移除console.error()改用toast通知用户
- 成功保存时显示成功提示
6. **代码整理**
- 移除未使用的maxConcurrentTests变量及其getStatus()中的引用
- 保持代码整洁性
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2025-12-19 13:39:39 +08:00
guoyongchang
9977245d59
feat/cron-test-support package lock fix.
2025-12-19 13:32:16 +08:00
guoyongchang
09cf951cdc
[feat/cron-test-support]done.
2025-12-19 10:25:43 +08:00
Wesley Liddick
ba93ae55a9
Merge pull request #811 from sususu98/feat/event-logging-endpoint
...
feat: 添加 Claude Code 遥测端点并优化日志级别
2025-12-16 19:34:44 -05:00
Wesley Liddick
53cda0fd18
Merge pull request #806 from XiaoXice/main [skip ci]
...
fix: 全时间api-token统计因为日token记录过期导致不准的问题
2025-12-16 19:34:35 -05:00
Wesley Liddick
151cb7536c
Merge pull request #808 from SilentFlower/fix/openai-scheduler-priority [skip ci]
...
fix(scheduler): 恢复OpenAI 账号选择支持 priority + lastUsedAt
2025-12-16 19:33:18 -05:00
sususu
0994eb346f
format
2025-12-16 18:32:11 +08:00
sususu
4863a37328
feat: 添加 Claude Code 遥测端点并优化日志级别
...
- 添加 /api/event_logging/batch 端点处理客户端遥测请求
- 将遥测相关请求日志改为 debug 级别,减少日志噪音
2025-12-16 18:31:07 +08:00
huajiwuyan
052e236a93
fix(scheduler): 恢复OpenAI 账号选择支持 priority + lastUsedAt
2025-12-15 23:17:44 +08:00
XiaoXice
c79ea19aa1
fix: 全时间api-token统计因为日token记录过期导致不准的问题
2025-12-15 15:14:09 +08:00
github-actions[bot]
79f2cebdb8
chore: sync VERSION file with release v1.1.235 [skip ci]
v1.1.235
2025-12-15 01:48:14 +00:00
Wesley Liddick
bd7b8884ab
Merge pull request #801 from miraserver/fix/cost-calculation-and-ui-display
...
fix: correct API key cost calculation and UI display issues
2025-12-14 20:48:00 -05:00
github-actions[bot]
38e0adb499
chore: sync VERSION file with release v1.1.234 [skip ci]
v1.1.234
2025-12-15 01:44:56 +00:00
shaw
7698f5ce11
chore: 增加opus4.5快捷映射按钮
2025-12-15 09:44:36 +08:00
shaw
ce13e5ddb1
fix: console账号转发使用白名单透传header
2025-12-15 09:38:51 +08:00
John Doe
baafebbf7b
fix: correct API key cost calculation and UI display issues
...
- Fix admin panel cost display for "all time" period using permanent Redis key
- Fix user statistics total cost limit to show complete history
- Fix restricted models list overflow with scrollable container
Backend changes:
- src/routes/admin/apiKeys.js: Use allTimeCost for timeRange='all' instead of scanning TTL keys
- src/routes/apiStats.js: Prioritize permanent usage:cost:total key over monthly keys
Frontend changes:
- web/admin-spa/src/components/apistats/LimitConfig.vue: Add overflow-visible and scrolling to model list
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-12-12 18:11:02 +03:00
github-actions[bot]
87426133a2
chore: sync VERSION file with release v1.1.233 [skip ci]
v1.1.233
2025-12-12 06:58:37 +00:00
Wesley Liddick
60f5cbe780
Merge pull request #800 from DaydreamCoding/feature/concurrency-queue
...
feat: enhance concurrency queue with health check and admin endpoints
2025-12-12 01:58:24 -05:00
Wesley Liddick
86d8ed52d7
Merge pull request #799 from kikii16/main [skip ci]
...
尝试自定义请求体maxSize大小
2025-12-12 01:58:12 -05:00
DaydreamCoding
07633ddbf8
feat: enhance concurrency queue with health check and admin endpoints
...
- Add queue health check for fast-fail when overloaded (P90 > threshold)
- Implement socket identity verification with UUID token
- Add wait time statistics (P50/P90/P99) and queue stats tracking
- Add admin endpoints for queue stats and cleanup
- Add CLEAR_CONCURRENCY_QUEUES_ON_STARTUP config option
- Update documentation with troubleshooting and proxy config guide
2025-12-12 14:32:09 +08:00
kikii16
dd90c426e4
Update docker-compose.yml
2025-12-12 11:38:31 +08:00
kikii16
059357f834
Update .env.example
2025-12-12 11:36:01 +08:00
kikii16
ceee3a9295
Update auth.js
2025-12-12 11:34:46 +08:00
Wesley Liddick
403f609f69
Merge pull request #797 from thejoven/patch-1 [skip ci]
...
修改提醒内容:新版 gemini-cli 的 Access Token 位置和文件名已变更
2025-12-11 21:10:07 -05:00
thejoven
304c8dda4e
Update AccountForm.vue
...
新版 gemini-cli 的 Access Token 位置和文件名已变更
2025-12-12 00:43:11 +08:00
github-actions[bot]
c4d923c46f
chore: sync VERSION file with release v1.1.232 [skip ci]
v1.1.232
2025-12-11 02:46:31 +00:00
Wesley Liddick
fa9f9146a2
Merge pull request #793 from qq790716890/main
...
fix:修复codex统计token问题
2025-12-10 21:46:15 -05:00
Wesley Liddick
dc9409a5a6
Merge pull request #788 from atoz03/main [skip ci]
...
fix: 账户列表默认显示限额/限流账号并加固加载健壮性
2025-12-10 21:44:55 -05:00
LZY
51aa8dc381
fix:修复codex统计token问题
2025-12-10 22:56:25 +08:00
github-actions[bot]
5061f4d9fd
chore: sync VERSION file with release v1.1.231 [skip ci]
v1.1.231
2025-12-10 12:11:39 +00:00
Wesley Liddick
4337af06d4
Merge pull request #791 from DaydreamCoding/feature/log-opt
...
fix: improve logging for client disconnections in relay services
2025-12-10 07:11:24 -05:00
Wesley Liddick
d226d57325
Merge pull request #790 from DaydreamCoding/patch-4 [skip ci]
...
fix(security): add authenticateAdmin middleware to concurrency routes
2025-12-10 07:11:07 -05:00