shaw
a6f5876eca
fix: 修复droid类型账号类型显示
2025-10-11 11:48:20 +08:00
shaw
6f2307721b
fix: 修复droid账号调度接口404问题
2025-10-11 11:34:13 +08:00
shaw
6c2ef2eef3
fix: 修复droid账号更新丢失apikey的问题
2025-10-11 11:23:24 +08:00
shaw
c56bebdbe5
fix: 修复droid分组调度保存无效的问题
2025-10-11 11:07:05 +08:00
shaw
19fa518e65
fix: 修复droid追加和代理代理IP提交异常的问题
2025-10-11 10:50:26 +08:00
github-actions[bot]
80059e2b09
chore: sync VERSION file with release v1.1.165 [skip ci]
2025-10-10 13:11:04 +00:00
shaw
c9ad287587
docs: 更新droid教程部分
2025-10-10 21:06:02 +08:00
shaw
6b02dbf040
fix: 优化droid转发错误传递
2025-10-10 20:05:13 +08:00
shaw
e150bc4beb
fix: droid转发移除claude code的metadata参数
2025-10-10 19:15:25 +08:00
shaw
1198ee1619
fix: 修复codex传递的gpt-5模型无法使用droid账号的问题
2025-10-10 18:40:19 +08:00
shaw
14e54c0473
docs: 更新Droid 使用教程
2025-10-10 17:34:53 +08:00
shaw
66fe3cf74a
fix: 优化count_tokens接口不受并发跟客户端限制
2025-10-10 17:16:10 +08:00
shaw
5165d6c536
Merge branch 'fix/tutorial-dark-theme' into merge-pr523
2025-10-10 16:38:45 +08:00
shaw
6a5b53c047
Merge branch 'pr-527' into merge-pr523
2025-10-10 16:38:32 +08:00
shaw
e209a23ae7
Merge branch 'pr-532' into merge-pr523
2025-10-10 16:37:35 +08:00
shaw
b28631e737
Merge branch 'pr-523' into merge-pr523
2025-10-10 16:34:29 +08:00
shaw
fad9e52c98
feat: Droid平台支持多apikey添加
2025-10-10 16:09:15 +08:00
shaw
1811290c0b
feat: 优化droid类型账号oauth流程
2025-10-10 15:36:50 +08:00
shaw
42db271848
feat: droid平台账户数据统计及调度能力
2025-10-10 15:13:45 +08:00
litong.41
99dbb154dd
将docs目录添加到gitignore目录中
2025-10-10 14:33:40 +08:00
litong.41
6b1062caa6
feat: 优化API Key复制功能,支持一键复制环境变量配置
...
- 修改"复制 API Key"按钮为"复制配置信息"
- 复制内容包含 ANTHROPIC_BASE_URL 和 ANTHROPIC_AUTH_TOKEN
- 用户无需手动拼接,可直接粘贴使用
- 支持自定义 BASE_URL 配置(通过 VITE_API_BASE_PREFIX 环境变量)
- 自动从浏览器地址获取 BASE_URL(无自定义配置时)
2025-10-10 14:27:16 +08:00
litongtongxue
75804f4c2e
fix(web): 修复使用教程页面暗色主题样式问题
...
- 优化按钮激活态在暗色模式下的视觉效果
- 修复所有提示框(info/success/warning)的暗色样式
- 增强文本对比度,提升可读性(标题/正文/辅助文本)
- 改进代码块在暗色模式下的边框和背景
- 修复 FAQ 折叠面板的暗色主题适配
- 保持玻璃态效果和响应式设计
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-10 02:20:22 +08:00
shaw
2fc84a6aca
feat: 新增Droid cli支持
2025-10-09 23:05:09 +08:00
rxchi1d
df5e04b4c4
docs: 改进反向代理部署指南,新增 NPM 方案
...
## 变更内容 / Changes
### 中文文档 (README.md)
- 重构反向代理章节结构
- 新增 Nginx Proxy Manager (NPM) 完整配置指南
- 优化 Caddy 配置说明
- 添加 Docker 环境部署注意事项
### 英文文档 (README_EN.md)
- 同步中文文档的所有改进
- 保持中英文文档一致性
## 改进点 / Improvements
- ✅ 提供两种主流反向代理方案(Caddy + NPM)
- ✅ 详细的 NPM 配置步骤(Details、SSL、Advanced)
- ✅ 针对 SSE/流式响应的优化配置
- ✅ 安全头部和性能调优建议
- ✅ Docker 环境特定说明
## 技术细节 / Technical Details
**NPM 配置包含:**
- 代理主机设置,包含正确的超时配置
- SSL/TLS 配置,启用 HSTS
- 支持流式传输的高级 Nginx 指令
- 安全头部(X-Frame-Options、CSP 等)
- 禁用代理缓冲以支持实时 SSE
**Caddy 配置更新:**
- 明确 flush_interval 用于 SSE 支持
- 改进超时设置文档
- 更好的安全头部示例
2025-10-09 14:11:26 +08:00
shaw
4de2ea3d17
feat: api-keys页面增加窗口限制进度显示
2025-10-09 08:57:05 +08:00
sususu98
786a62e2e3
feat(账户表单): 添加模型限制模式切换功能
...
支持在白名单模式和映射模式之间切换,白名单模式允许通过复选框选择支持的模型,映射模式保留原有的模型映射功能
暂时没有限制专属绑定场景
2025-10-08 17:41:28 +08:00
github-actions[bot]
cffd023239
chore: sync VERSION file with release v1.1.164 [skip ci]
2025-10-08 01:38:07 +00:00
shaw
eb304c7e70
feat: openai转发增加apikey速率限制
2025-10-08 08:36:43 +08:00
shaw
9209f10fc3
Merge branch 'dev' of https://github.com/Wei-Shaw/claude-relay-service into dev
2025-10-07 15:25:26 +08:00
Wesley Liddick
642ea1a33a
Merge pull request #511 from sususu98/dev
...
fix: 用户登录接口在开发环境 404 错误
2025-10-07 15:20:42 +08:00
shaw
bd445eef29
Merge PR #515 : docs/update-cherry-studio-integration
2025-10-07 15:15:52 +08:00
shaw
6e770146fd
fix: 优化cache control问题2
2025-10-07 15:14:08 +08:00
shaw
9c022e6642
Merge branch 'fix-daily-average-calculation' into dev
2025-10-07 15:06:11 +08:00
litongtongxue
cac1b90d23
chore: 格式化代码符合 Prettier 规范
2025-10-07 14:44:25 +08:00
shaw
88429e1a24
fix: 优化cache control问题
2025-10-07 14:37:28 +08:00
github-actions[bot]
1777309218
chore: sync VERSION file with release v1.1.163 [skip ci]
2025-10-07 06:09:40 +00:00
shaw
52af60b3c9
fix: 适配Claude agent-sdk转发
2025-10-07 14:00:29 +08:00
litongtongxue
454f366c50
fix: 修复日均费用计算逻辑
...
问题描述:
- 之前的日均费用计算是基于固定的30天窗口,而不是账户实际使用的天数
- 这导致新创建的账户显示的日均费用不准确
修复方案:
- 获取账户的创建时间(createdAt字段)
- 计算从账户创建到当前时间的实际天数
- 使用实际天数来计算日均费用(30天总费用 / 实际天数)
- 在前端显示实际使用天数,让用户了解计算基准
修改内容:
- 后端:在 /accounts/:accountId/usage-history 端点中添加实际天数计算逻辑
- 前端:在详情弹窗中显示基于实际使用天数的提示信息
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-07 11:27:29 +08:00
rxchi1d
4d380e03f1
docs: update Cherry Studio integration guide
...
Update Claude Sonnet model ID to claude-sonnet-4-5-20250929 (v4.5) and
fix API endpoint formats for Cherry Studio compatibility. Remove
trailing slashes from all endpoint URLs to allow Cherry Studio to
automatically append v1 version parameter.
Add important notes about Cherry Studio URL format requirements,
explaining that URLs without trailing slashes and URLs with /v1/
suffix are equivalent, while URLs with single trailing slash will
ignore the v1 version.
Changes:
- Update Claude Sonnet model from claude-sonnet-4-20250514 to
claude-sonnet-4-5-20250929
- Fix Claude endpoint: /claude/ → /claude
- Fix Gemini endpoint: /gemini/ → /gemini
- Fix Codex endpoint: /openai/ → /openai
- Add URL format explanation and best practices section
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-04 15:22:00 +08:00
github-actions[bot]
1fdfce1e4f
chore: sync VERSION file with release v1.1.162 [skip ci]
2025-10-04 03:53:47 +00:00
shaw
2872198259
chore: claude绑定账号响应限流提示
2025-10-04 11:31:21 +08:00
shaw
cd72a29674
chore: opus周限提示增加重置时间
2025-10-04 11:10:55 +08:00
shaw
d44582dc31
feat: 适配claude新opus周限规则
2025-10-04 10:49:40 +08:00
sususu98
57e75cd526
fix: 用户登录接口在开发环境 404 错误
...
修复 user.js 中未使用 API_PREFIX 导致的路径问题。
现在开发环境正确使用 /webapi 前缀进行代理转发。
2025-10-03 22:34:31 +08:00
shaw
bda1875466
Merge PR #507 : add rate limit recovery notifications
2025-10-03 22:25:46 +08:00
shaw
06a3aff069
Merge PR #506 : limit 5-hour warning notifications
2025-10-03 22:25:40 +08:00
wfunc
a3666e3a3e
feat: add rate limit recovery webhook notifications
...
添加限流恢复的 webhook 通知功能,当账户从限流状态自动恢复时发送通知。
主要改进:
1. **新增通知类型** (webhookConfigService.js)
- 添加 `rateLimitRecovery` 通知类型
- 在配置获取和保存时自动合并默认通知类型
- 确保新增的通知类型有默认值
2. **增强限流清理服务** (rateLimitCleanupService.js)
- 改进自动停止账户的检测逻辑
- 在 `finally` 块中确保 `clearedAccounts` 列表被重置,避免重复通知
- 对自动停止的账户显式调用 `removeAccountRateLimit`
- 为 Claude 和 Claude Console 账户添加 `autoStopped` 和 `needsAutoStopRecovery` 检测
3. **改进 Claude Console 限流移除** (claudeConsoleAccountService.js)
- 检测并恢复因自动停止而禁用调度的账户
- 清理过期的 `rateLimitAutoStopped` 标志
- 增加详细的日志记录
4. **前端 UI 支持** (SettingsView.vue)
- 在 Webhook 设置中添加"限流恢复"通知类型选项
- 更新默认通知类型配置
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-02 23:54:30 +08:00
wfunc
ea0f818251
feat(claude): limit 5-hour warning notifications to prevent spam
...
## Problem
- Original implementation sends webhook notification on EVERY request when
account reaches 5-hour limit warning status
- Users receive hundreds of duplicate notifications within same 5-hour window
## Solution
- Add `maxFiveHourWarningsPerWindow` config (default: 1, max: 10)
- Track warning count per session window with metadata:
- fiveHourWarningWindow: identifies current window
- fiveHourWarningCount: tracks notifications sent
- fiveHourWarningLastSentAt: last notification timestamp
- Only send notification if count < max limit
- Auto-reset counters when entering new 5-hour window
## Changes
- Add warning limit control in constructor
- Add `_clearFiveHourWarningMetadata()` helper method
- Update `updateSessionWindowStatus()` with notification throttling
- Clear warning metadata on window refresh and manual schedule recovery
## Configuration
- Environment: CLAUDE_5H_WARNING_MAX_NOTIFICATIONS (1-10)
- Config: config.claude.fiveHourWarning.maxNotificationsPerWindow
- Default: 1 notification per window
## Testing
- Tested with accounts reaching 5h limit
- Verified single notification per window
- Confirmed counter reset on new window
2025-10-02 23:31:52 +08:00
github-actions[bot]
7183903147
chore: sync VERSION file with release v1.1.161 [skip ci]
2025-10-02 13:19:47 +00:00
shaw
fe894cc07a
docs: issue-501
2025-10-02 19:25:59 +08:00