Commit Graph

543 Commits

Author SHA1 Message Date
mouyong
ca4099d23f fix: 修复无法获取分组账号问题 2025-08-05 19:39:53 +08:00
github-actions[bot]
b1ae726774 chore: sync VERSION file with release v1.1.77 [skip ci] 2025-08-05 11:02:48 +00:00
shaw
4ebe6abd96 fix: 修复编辑账户时分组调度选择不生效的问题
- 为 Claude Console 和 Gemini 账户的更新接口添加分组处理逻辑
- 处理账户类型变更时的分组关系(从旧分组移除,添加到新分组)
- 修复前端编辑账户时分组 ID 的初始化问题
- 优化删除账户时自动从分组中移除的逻辑

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 19:02:27 +08:00
github-actions[bot]
f46653a461 chore: sync VERSION file with release v1.1.76 [skip ci] 2025-08-05 09:34:51 +00:00
Wesley Liddick
5b0c02d8ce Merge pull request #181 from wbchn/main
fix: 🐛 修复续期 endpoint
2025-08-05 17:34:41 +08:00
github-actions[bot]
877f95ac38 chore: sync VERSION file with release v1.1.75 [skip ci] 2025-08-05 09:31:53 +00:00
shaw
322f5d95dd Merge branch 'dev' into main
合并dev分支的最新更改到main分支,包括:
- 按钮样式改进
- 分组调度功能修复
- API Keys统计弹窗UI优化

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 17:31:32 +08:00
shaw
98a2452698 style: 添加次要按钮样式
添加 btn-secondary 类的渐变背景和悬停效果,提供灰色系的次要按钮样式。

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 17:31:12 +08:00
shaw
7fa75df1fd fix: 修复分组调度功能和API Keys统计弹窗UI问题
1. 分组调度功能修复:
   - 统一使用 unifiedClaudeScheduler 和 unifiedGeminiScheduler
   - 修复 schedulable 字段数据类型不一致问题(布尔值/字符串)
   - 添加 _isSchedulable() 辅助方法确保兼容性
   - 修复所有路由文件中的调度器调用

2. API Keys 统计弹窗UI优化:
   - 统一弹窗样式与系统UI风格
   - 添加右上角关闭按钮
   - 修复移动端宽度问题(设置为95%屏幕宽度)
   - 使用 Teleport 组件和项目通用样式

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 17:06:52 +08:00
wbchn
e6e5a2d53e fix: 🐛 修复续期 endpoint 2025-08-05 14:19:38 +08:00
github-actions[bot]
f6b7342286 chore: sync VERSION file with release v1.1.74 [skip ci] 2025-08-05 00:34:38 +00:00
Wesley Liddick
ce5880142b Merge pull request #173 from mouyong/dev-local
增加 gemini cli 使用的支持
2025-08-05 08:34:29 +08:00
mouyong
9fca0b0c20 feat: gemini 支持 2025-08-05 01:19:23 +08:00
mouyong
c214d72bef feat: gemini 流式响应 2025-08-04 23:10:53 +08:00
mouyong
71b0d743fd feat: gemini 流式响应 2025-08-04 23:05:51 +08:00
mouyong
e4b5364061 feat: gemini 流式响应 2025-08-04 23:04:40 +08:00
mouyong
74f428d990 feat: gemini 流式响应 2025-08-04 22:57:31 +08:00
mouyong
49221dfbc5 feat: gemini 流式响应 2025-08-04 22:45:11 +08:00
mouyong
08a962833b feat: gemini 流式响应 2025-08-04 22:38:58 +08:00
mouyong
ae9f6158d1 feat: gemini 流式响应 2025-08-04 22:37:06 +08:00
mouyong
f2312893d4 feat: gemini 流式响应 2025-08-04 22:36:36 +08:00
github-actions[bot]
50ebf38140 chore: sync VERSION file with release v1.1.73 [skip ci] 2025-08-04 13:52:40 +00:00
Wesley Liddick
0b690235cf Merge pull request #170 from mouyong/dev-local
处理 openai 格式请求调用 gemini 的问题
2025-08-04 21:52:28 +08:00
mouyong
c36ae32928 Merge branch 'main' of github.com:Wei-Shaw/claude-relay-service
* 'main' of github.com:Wei-Shaw/claude-relay-service:
  chore: sync VERSION file with release v1.1.72 [skip ci]
  fix: 修复账户管理和API Key管理的多个问题
  fix: 修复 GitHub Actions 版本检测对合并提交的处理
2025-08-04 20:34:38 +08:00
mouyong
54ad8452c3 feat: gemini 流式响应 2025-08-04 20:34:17 +08:00
github-actions[bot]
6427dcc855 chore: sync VERSION file with release v1.1.72 [skip ci] 2025-08-04 10:45:38 +00:00
shaw
07cec05efc Merge branch 'dev' 2025-08-04 18:45:08 +08:00
shaw
a69d1ae1dd fix: 修复账户管理和API Key管理的多个问题
- 修复 Claude Console 账号 supportedModels 导致的 be.join 错误
- 添加专属账号选择器组件,支持搜索和按创建时间倒序排序
- 修复搜索框图标与placeholder文字重叠的问题
- 修复选择共享账号池后显示文字不正确的问题
- 优化下拉框定位逻辑,解决超出视窗无法滚动的问题

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 18:44:36 +08:00
mouyong
2eee902988 feat: 处理 openai 格式请求 2025-08-04 18:20:39 +08:00
shaw
45f9ac0da7 Merge branch 'dev' 2025-08-04 17:49:18 +08:00
shaw
8ece285f5f fix: 修复 GitHub Actions 版本检测对合并提交的处理
问题:
- 之前的版本检测逻辑使用 HEAD~1..HEAD 只能获取直接的父提交变更
- 对于合并提交,这会导致忽略所有合并进来的实际代码变更
- 导致明明有重要代码更新却显示 "No significant changes"

解决方案:
- 添加合并提交检测逻辑
- 对于合并提交,获取从合并基准点到 HEAD 的所有变更
- 确保所有合并进来的文件变更都被正确检测

这样可以确保版本自动发布工作流正确识别所有代码变更。

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 17:48:44 +08:00
mouyong
327d14bd5e Merge branch 'main' of github.com:Wei-Shaw/claude-relay-service
* 'main' of github.com:Wei-Shaw/claude-relay-service:
  fix: 修复 Gemini 统计功能的多个问题
  fix: 修复API Keys页面时间窗口进度条和Token数值显示问题
  chore: 清理 dist 目录
2025-08-04 17:42:08 +08:00
mouyong
c8f2abfedc feat: 处理 openai 格式请求 2025-08-04 17:40:57 +08:00
shaw
fb93d866d4 Merge branch 'main' of github.com:Wei-Shaw/claude-relay-service 2025-08-04 17:36:28 +08:00
shaw
2ad5d02468 fix: 修复 Gemini 统计功能的多个问题
主要修复:
1. geminiRoutes.js 主端点现在使用统一调度器(unifiedGeminiScheduler)
   - 支持模型过滤
   - 支持账户调度控制
   - 与 Claude 保持一致的调度逻辑

2. 修复 Gemini 账户统计数据获取
   - admin 路由现在正确获取 Gemini 账户的使用统计
   - 使用 redis.getAccountUsageStats 获取真实数据
   - 与 Claude 账户统计逻辑保持一致

这些修复确保了 Gemini 服务的数据统计功能正常工作,包括:
- 请求次数统计
- Token 使用量统计
- 模型级别的统计数据
- API Keys 页面和账户管理页面的数据显示

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 17:35:15 +08:00
shaw
63f92bec84 Merge branch 'main' into dev 2025-08-04 16:54:32 +08:00
github-actions[bot]
e2f787956b chore: sync VERSION file with release v1.1.71 [skip ci] 2025-08-04 08:54:19 +00:00
shaw
ef4f7483d3 feat: 完善 Gemini 功能与 Claude 保持一致
- 添加 Gemini 账户的 schedulable 字段和调度开关 API
- 实现 Gemini 调度器的模型过滤功能
- 完善 Gemini 数据统计,记录 token 使用量
- 修复 Gemini 流式响应的 SSE 解析和 AbortController 支持
- 在教程页面和 README 中添加 Gemini CLI 环境变量说明
- 修复前端 Gemini 账户调度开关限制

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:53:11 +08:00
mouyong
15b4efa353 feat: 处理sse传输 2025-08-04 15:52:14 +08:00
mouyong
254fa5aef7 feat: 处理sse传输 2025-08-04 15:48:09 +08:00
mouyong
0e5a49c86f feat: 处理sse传输 2025-08-04 15:46:16 +08:00
github-actions[bot]
7ec1d57288 chore: sync VERSION file with release v1.1.70 [skip ci] 2025-08-04 06:03:15 +00:00
Wesley Liddick
3da3582e61 Merge pull request #167 from qyinter/main
feat: 增强 Gemini 服务支持并添加统一调度器
2025-08-04 14:03:05 +08:00
千羽
9625e7f490 Merge branch 'Wei-Shaw:main' into main 2025-08-04 14:47:32 +09:00
千羽
33837c23aa feat: 增强 Gemini 服务支持并添加统一调度器
- 新增 unifiedGeminiScheduler.js 统一账户调度服务
- 增强 geminiRoutes.js 支持更多 Gemini API 端点
- 优化 geminiAccountService.js 账户管理和 token 刷新机制
- 添加对 v1internal 端点的完整支持(loadCodeAssist、onboardUser、countTokens、generateContent、streamGenerateContent)
- 改进错误处理和流式响应管理

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 14:47:03 +09:00
github-actions[bot]
4cc0fec8b2 chore: sync VERSION file with release v1.1.69 [skip ci] 2025-08-04 04:48:39 +00:00
shaw
8280999143 Merge branch 'main' into dev 2025-08-04 12:48:38 +08:00
shaw
be98d5c498 fix: 修复账户管理页面移动端布局数据显示问题
- 修复移动端数据路径不一致问题(usage.dailyRequests -> usage.daily.requests)
- 增强移动端会话窗口显示,添加进度百分比、时间窗口和剩余时间
- 改进会话窗口UI,使用卡片样式更清晰展示信息
- 检查确认API Keys页面无类似问题

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 12:48:15 +08:00
shaw
53d28adbd3 Merge branch 'main' of github.com:Wei-Shaw/claude-relay-service 2025-08-04 12:02:35 +08:00
shaw
823c7d6599 Merge branch 'main' into dev 2025-08-04 11:58:48 +08:00