Commit Graph

  • 81971436e6 feat: 在仪表盘添加使用记录展示功能 IanShaw027 2025-12-03 19:41:37 -08:00
  • 69a1006f4c feat: 增强账户管理页面的过滤和统计功能 IanShaw027 2025-12-03 19:35:29 -08:00
  • 4cf1762467 fix: 修复 ESLint curly 规则问题 IanShaw027 2025-12-05 02:21:30 +08:00
  • 0d64d40654 feat: 添加上游不稳定错误检测与账户临时不可用机制 IanShaw027 2025-12-05 01:36:59 +08:00
  • 07d155f97e chore: 同步模型价格数据 (b5692dea2e653335806b1d752a2de33112eecfcefe229b9747a889c734daf445) github-actions[bot] 2025-12-04 17:32:55 +00:00
  • 985f07e16a chore: update frontend build for v1.1.220 [skip ci] github-actions[bot] 2025-12-04 13:02:32 +00:00
  • 1b18a1226d chore: sync VERSION file with release v1.1.220 [skip ci] v1.1.220 github-actions[bot] 2025-12-04 13:01:54 +00:00
  • 0b2372abab Merge pull request #756 from SunSeekerX/feature_api_disable_switch Wesley Liddick 2025-12-04 08:01:35 -05:00
  • 8aca1f9dd1 feat(account): 新增账户自动防护禁用开关 SunSeekerX 2025-12-04 20:47:12 +08:00
  • 95ef04c1a3 fix: 保持仪表盘趋势图非负并纠正小时区间 - 小时粒度请求使用用户选择的起止时间,避免近24小时被截成整天 - 修正日期展示格式化逻辑,减少时区偏移导致的窗口错位 - 趋势图 Y 轴(Token/请求数/费用等)强制最小值为 0,防止出现负刻度 atoz03 2025-12-04 17:05:36 +08:00
  • 4919e392a5 feat: 仪表盘日期筛选默认今日并记忆用户偏好 atoz03 2025-12-04 16:48:11 +08:00
  • 354d8da13f feat:已修复详情弹窗位置问题:RecordDetailModal 现在 append-to-body、destroy-on-close,并设定 top="10vh",点击列表底部的“详情”不会被滚动容器截断或浮在页面顶部看不到。 atoz03 2025-12-04 15:17:48 +08:00
  • 3df0c7c650 feat:已修复 ESLint no-shadow 问题:geminiApiAccountService 不再重复声明,改用顶部引入的实例。后端/前端 lint 均通过(npm run lint:check、cd web/admin-spa && npm run lint) atoz03 2025-12-04 15:05:09 +08:00
  • 6a3dce523b chore: format usage stats route atoz03 2025-12-04 15:02:07 +08:00
  • 9fe2918a54 feat: keep API key stats modal and add timeline entry point atoz03 2025-12-04 14:56:27 +08:00
  • 92b30e1924 feat: add API key usage timeline API and admin UI atoz03 2025-12-04 14:41:38 +08:00
  • 21fcf09783 chore: 同步模型价格数据 (91ce18b5ab3482ee9dee59d169cc5f039e4cd60a0630e7d8a559a86e355cec2a) github-actions[bot] 2025-12-04 05:38:00 +00:00
  • bb023eb018 chore: update frontend build for v1.1.219 [skip ci] github-actions[bot] 2025-12-04 01:49:35 +00:00
  • b63f2f78fc chore: sync VERSION file with release v1.1.219 [skip ci] v1.1.219 github-actions[bot] 2025-12-04 01:48:56 +00:00
  • c971d239ff Merge pull request #752 from IanShaw027/fix/filter-cloudflare-cdn-headers Wesley Liddick 2025-12-03 20:48:41 -05:00
  • 01d6e30e82 Merge pull request #751 from atoz03/feature/account-sort-toggle [skip ci] Wesley Liddick 2025-12-03 20:48:24 -05:00
  • 5fd78b6411 fix: 过滤 Cloudflare CDN headers 以防止 API 安全检查 IanShaw027 2025-12-03 06:33:50 -08:00
  • 9ad5c85c2c feat(accounts): 支持排序切换正序/倒序 atoz03 2025-12-03 20:25:26 +08:00
  • 1cd63c7fda chore: 同步模型价格数据 (33584bbe35cde655302130dc86be2b2afecd02e2cb7685dc958b6ed72547a2b7) github-actions[bot] 2025-12-03 06:08:11 +00:00
  • b02f151dde chore: 同步模型价格数据 (8698332d5f13b31f1ac0d30e76896e824313746db391612385d7f07838215640) github-actions[bot] 2025-12-03 00:49:08 +00:00
  • 2de1490dcd chore: 同步模型价格数据 (48a93716a55676cef6c8a0e1c8db4cb456ef548c3a6674a9c88a37574b0321bf) github-actions[bot] 2025-12-03 00:21:48 +00:00
  • 5406f15ab7 chore: 同步模型价格数据 (15d9b928785c188005a9ad9646d8287324dfc2531f0d4e234fc2317e5fc207b6) github-actions[bot] 2025-12-02 23:46:59 +00:00
  • 8f7cd7dc16 chore: update frontend build for v1.1.218 [skip ci] github-actions[bot] 2025-12-02 12:52:40 +00:00
  • 279cd72f23 chore: sync VERSION file with release v1.1.218 [skip ci] v1.1.218 github-actions[bot] 2025-12-02 12:52:01 +00:00
  • 81e89d2dc4 feat: 支持sessionKey完成oauth授权 shaw 2025-12-02 20:43:47 +08:00
  • ccad2ddcbf chore: 同步模型价格数据 (e7cecdeb0a3db4ac547d9c357900e06bb50ebed80d7d12bed7691c94ea978593) github-actions[bot] 2025-12-02 04:15:49 +00:00
  • 003ea2f5e4 chore: 同步模型价格数据 (5aa723c97ebae928341eadfe7922ae51d4c8dc3c6bce34547da91006e0eae340) github-actions[bot] 2025-12-02 03:02:44 +00:00
  • e5a442c668 chore: 同步模型价格数据 (eecc85fe554700941c9c4f35368b872d977ff6f7c536045ddd10e6d978a06698) github-actions[bot] 2025-12-01 22:17:03 +00:00
  • abf8158b76 chore: update frontend build for v1.1.217 [skip ci] github-actions[bot] 2025-12-01 07:14:24 +00:00
  • c38b3d2a78 chore: sync VERSION file with release v1.1.217 [skip ci] v1.1.217 github-actions[bot] 2025-12-01 07:13:46 +00:00
  • e8e6f972b4 fix: 增强console账号test端点 shaw 2025-12-01 15:08:40 +08:00
  • d3155b82ea style: 优化表格布局 shaw 2025-12-01 14:20:53 +08:00
  • 02018e10f3 feat: 为console类型账号增加count_tokens端点判断 shaw 2025-12-01 10:14:12 +08:00
  • 4898b279c1 chore: update frontend build for v1.1.216 [skip ci] github-actions[bot] 2025-11-30 13:14:36 +00:00
  • e17cd1d61b chore: sync VERSION file with release v1.1.216 [skip ci] v1.1.216 github-actions[bot] 2025-11-30 13:13:59 +00:00
  • b9d53647bd Merge pull request #727 from xilu0/main Wesley Liddick 2025-11-30 08:13:43 -05:00
  • 14567fdb25 chore: update frontend build for v1.1.215 [skip ci] github-actions[bot] 2025-11-29 13:31:37 +00:00
  • a872529b2e chore: sync VERSION file with release v1.1.215 [skip ci] v1.1.215 github-actions[bot] 2025-11-29 13:31:00 +00:00
  • dfee7be944 fix: 调整gemini-api BaseApi后缀以适配更多端点 shaw 2025-11-29 21:30:28 +08:00
  • 392601efd5 chore: sync VERSION file with release v1.1.215 [skip ci] github-actions[bot] 2025-11-29 09:51:09 +00:00
  • 249e256360 fix: 修复 Claude API 400 错误:tool_result/tool_use 不匹配问题 错误信息: messages.14.content.0: unexpected tool_use_id found in tool_result blocks: toolu_01Ekn6YJMk7yt7hNcn4PZxtM. Each tool_result block must have a corresponding tool_use block in the previous message. 根本原因: 文件: src/services/claudeRelayService.js 中的 _enforceCacheControlLimit() 方法 原实现问题: 1. 当 cache_control 块超过 4 个时,直接删除整个内容块(splice) 2. 这会删除 tool_use 块,导致后续的 tool_result 找不到对应的 tool_use_id 3. 也会删除用户的文本消息,导致上下文丢失 重要背景(官方文档确认) 根据 Claude API 官方文档: - 最多可定义 4 个 cache_control 断点 - 如果超过限制,API 不会报错,只是静默地忽略多余的断点 - "20 个块回溯窗口" 是缓存命中检查的范围,与断点数量限制无关 因此,这个函数的原始设计(删除内容块)是不必要且有害的。 修复方案: 保留函数但修改行为:只删除 cache_control 属性,保留内容本身 修改位置; 文件: src/services/claudeRelayService.js 修改内容: 将 removeFromMessages() 和 removeFromSystem() 函数从"删除整个内容块"改为"只删除 cache_control 属性": // 修改前:直接删除整个内容块 message.content.splice(contentIndex, 1) // 修改后:只删除 cache_control 属性,保留内容 delete contentItem.cache_control 效果对比; | 场景 | 修复前 | 修复后 | |------------|----------------|----------------| | 用户文本消息 | 整个消息被删除 | 保留消息,只移除缓存标记 | | tool_use 块 | 被删除导致 400 错误 | 保留完整内容 | | system 提示词 | 整个提示词被删除 | 保留提示词内容 | | 缓存功能 | ⚠️ 强制限制 | 降级(不缓存但内容完整) | Dave 2025-11-29 17:46:48 +08:00
  • fcf0460b02 chore: update frontend build for v1.1.214 [skip ci] github-actions[bot] 2025-11-29 06:14:32 +00:00
  • 876b126ce0 chore: sync VERSION file with release v1.1.214 [skip ci] v1.1.214 github-actions[bot] 2025-11-29 06:13:56 +00:00
  • 6ec4f4bf5b fix: 修复claude console账号Test未响应的的bug shaw 2025-11-29 14:13:28 +08:00
  • 326adaaeca fix: 修复Openai-api账户分组调度设置问题 shaw 2025-11-29 14:12:42 +08:00
  • d89344ad87 fix: 修复Gemini-api账户分组调度设置不生效的问题 shaw 2025-11-29 14:11:58 +08:00
  • 68f003976e style: 优化表格显示固定列宽 shaw 2025-11-29 11:20:07 +08:00
  • 63a7c2514b fix: 修复gemini-api账户共享池无法调度问题 shaw 2025-11-29 10:02:51 +08:00
  • b9083cc008 chore: update frontend build for v1.1.213 [skip ci] github-actions[bot] 2025-11-28 09:18:05 +00:00
  • c6a7771b81 chore: sync VERSION file with release v1.1.213 [skip ci] v1.1.213 github-actions[bot] 2025-11-28 09:17:29 +00:00
  • b58b8b1ac7 feat: 支持apikey测试claude端点 shaw 2025-11-28 17:16:37 +08:00
  • 53553c7e76 fix: 修复gemini api类型账户绑定显示问题 shaw 2025-11-28 16:33:31 +08:00
  • 4a0ba6ed63 fix: 修复gemini api账户转发的传参问题 shaw 2025-11-28 16:20:26 +08:00
  • 28caa93d99 feat: 重新支持apikey费用排序功能 shaw 2025-11-28 15:32:50 +08:00
  • d9476230c6 fix: 修复apikey窗口限制时间显示异常的问题 shaw 2025-11-28 14:02:58 +08:00
  • 49645e8a50 feat: 增强claude转发特征模拟 shaw 2025-11-28 13:54:42 +08:00
  • 7db70e2dc0 feat: 为claude类型账号增加测试功能 shaw 2025-11-28 10:51:01 +08:00
  • ca1c2e1a44 chore: 同步模型价格数据 (7de38d6a7b957c0734ccdc3666e581fe8f4a46e70981a77c9a4b800875099e76) github-actions[bot] 2025-11-28 02:49:49 +00:00
  • c114c176f4 chore: 同步模型价格数据 (5a92097180e074b74298ae95d6e660bd27ca0e2ca7581a288078241b8ad305cd) github-actions[bot] 2025-11-27 21:16:49 +00:00
  • fd2b8a0114 refacto: 重构admin.js shaw 2025-11-27 22:16:45 +08:00
  • 851809a132 Merge branch 'xilu0/main' shaw 2025-11-27 20:41:37 +08:00
  • 4aeb47062b fix: droid增加comm端点 shaw 2025-11-27 20:38:50 +08:00
  • 0c124ef37b chore: sync VERSION file with release v1.1.212 [skip ci] github-actions[bot] 2025-11-27 02:57:21 +00:00
  • 94ff095754 fix: 修复Redis映射表竞态条件导致API Key临时失效问题 Dave King 2025-11-27 10:06:09 +08:00
  • 412d159c5e chore: 同步模型价格数据 (f4518d9f571290f097e5f661bc713ecbcf1f09d266ce9f8cfae52b4ca0f1533b) github-actions[bot] 2025-11-27 02:50:31 +00:00
  • 9bee47eb39 chore: 同步模型价格数据 (cb5f28c7cd6ee8fe907abc65a2c0a9e698c5acdee9204c7a7b05d432efaf08ce) github-actions[bot] 2025-11-26 23:53:14 +00:00
  • 3a1d5b1835 chore: 同步模型价格数据 (33b44423f1546d7f345b32f4fb4a9214875aea6e69308fd91362c85e16977277) github-actions[bot] 2025-11-26 22:17:17 +00:00
  • ced3847197 chore: 同步模型价格数据 (ec57120a8afe9d1f245219e2ab44d62c21a44b8d54843a51cf61a15241f9fdf7) github-actions[bot] 2025-11-26 19:34:06 +00:00
  • b9f102acb0 chore: 同步模型价格数据 (76a418750393e2cd09a41a1d2828aa8245043eb858d01868955281640341647f) github-actions[bot] 2025-11-26 16:49:02 +00:00
  • c8c9299da0 chore: update frontend build for v1.1.211 [skip ci] github-actions[bot] 2025-11-26 11:46:17 +00:00
  • 291642d8ff chore: sync VERSION file with release v1.1.211 [skip ci] github-actions[bot] 2025-11-26 11:45:41 +00:00
  • 89238818eb fix: 修复apikeys页面状态排序失效的问题 shaw 2025-11-26 19:45:15 +08:00
  • 4d21c85f83 fix: claude转发移除x-authorization 头 shaw 2025-11-26 19:38:28 +08:00
  • 54ca3fbea9 chore: update frontend build for v1.1.210 [skip ci] github-actions[bot] 2025-11-26 02:25:00 +00:00
  • 9179776688 chore: sync VERSION file with release v1.1.210 [skip ci] github-actions[bot] 2025-11-26 02:24:25 +00:00
  • 8d07672ac5 fix: 复制完整Claude配置按钮增加export shaw 2025-11-26 10:23:19 +08:00
  • 3fb874fc29 feat: admin-next/api-stats查询被禁用的key增加名字显示 shaw 2025-11-26 10:18:43 +08:00
  • 6e95607285 fix: 修复apikeys页面窗口限制显示错误的bug shaw 2025-11-26 10:09:58 +08:00
  • 0b7958dba6 chore: 同步模型价格数据 (e122900382e86e2421def2912273c63500285e6a21ca5660e04e2d3be715f1d6) github-actions[bot] 2025-11-25 23:17:07 +00:00
  • c17c7da245 chore: 同步模型价格数据 (152295f78ddf9b33e085ac4c966b285aa6c2e4bcf0f62be3cced57e286c4a8bd) github-actions[bot] 2025-11-25 18:42:59 +00:00
  • bf926194bc chore: update frontend build for v1.1.209 [skip ci] github-actions[bot] 2025-11-25 12:53:44 +00:00
  • 86cf907f3b chore: sync VERSION file with release v1.1.209 [skip ci] github-actions[bot] 2025-11-25 12:53:08 +00:00
  • 919501a2f1 Merge branch 'fix/gemini-projectid-fallback' into dev shaw 2025-11-25 20:44:48 +08:00
  • dea6964116 fix: 修复apikeys页面部分bug shaw 2025-11-25 20:38:52 +08:00
  • b619208970 修复:移除请求参数 projectId 降级,改为实时获取 曾庆雷 2025-11-25 19:32:38 +08:00
  • e0500f0530 修复:Gemini OAuth 账户 projectId 降级逻辑缺失 曾庆雷 2025-11-25 19:06:55 +08:00
  • d78d1622cc chore: update frontend build for v1.1.208 [skip ci] github-actions[bot] 2025-11-25 07:03:59 +00:00
  • 255b3a0a0d chore: sync VERSION file with release v1.1.208 [skip ci] github-actions[bot] 2025-11-25 07:03:21 +00:00
  • 22fbabbc47 fix: 优化apikeys页面加载速度 shaw 2025-11-25 14:59:58 +08:00
  • 52578d7fea chore: update frontend build for v1.1.207 [skip ci] github-actions[bot] 2025-11-25 02:55:25 +00:00
  • 82e63ef55b chore: sync VERSION file with release v1.1.207 [skip ci] github-actions[bot] 2025-11-25 02:54:48 +00:00
  • 25f455ac1c fix: 适配claude新的usage接口 shaw 2025-11-25 10:54:21 +08:00
  • a4dcfb842e refactor: 重构gemini转部分 shaw 2025-11-25 10:30:39 +08:00
  • 608f05775b chore: 同步模型价格数据 (614d32acc97a7c49244e437c382805daaf85e501dd7accb80f0d1f555c1b0da5) github-actions[bot] 2025-11-24 22:44:38 +00:00
  • a0eb76636a chore: update frontend build for v1.1.206 [skip ci] github-actions[bot] 2025-11-24 06:50:14 +00:00