Commit Graph

1535 Commits

Author SHA1 Message Date
shaw
851809a132 Merge branch 'xilu0/main' 2025-11-27 20:41:37 +08:00
shaw
4aeb47062b fix: droid增加comm端点 2025-11-27 20:38:50 +08:00
github-actions[bot]
0c124ef37b chore: sync VERSION file with release v1.1.212 [skip ci] 2025-11-27 02:57:21 +00:00
Dave King
94ff095754 fix: 修复Redis映射表竞态条件导致API Key临时失效问题
问题:编辑API Key后立即使用时会偶现(概率1%)报"API密钥已过期"错误,
一会儿后自动恢复。这是因为updateApiKey()方法未传递hashedKey参数给
setApiKey(),导致映射表未更新而主数据已更新的不一致状态。

修复:
- updateApiKey()传递keyData.apiKey(hashedKey)给setApiKey()
- 确保每次更新API Key时映射表也被同步更新
- 添加日志记录帮助监控映射表问题

细节:
1. updateApiKey(): 传递hashedKey参数确保映射表一致性
2. validateApiKey(): 添加警告日志检测映射表缺失
3. updateApiKey(): 增强日志记录"hashMap updated"

这解决了Redis双重存储(apikey:{id}和apikey:hash_map)的
竞态条件问题。

Fix: #API-Key-Expiry-Race-Condition
2025-11-27 10:56:58 +08:00
github-actions[bot]
291642d8ff chore: sync VERSION file with release v1.1.211 [skip ci] 2025-11-26 11:45:41 +00:00
shaw
89238818eb fix: 修复apikeys页面状态排序失效的问题 2025-11-26 19:45:15 +08:00
shaw
4d21c85f83 fix: claude转发移除x-authorization 头 2025-11-26 19:38:28 +08:00
github-actions[bot]
9179776688 chore: sync VERSION file with release v1.1.210 [skip ci] 2025-11-26 02:24:25 +00:00
shaw
8d07672ac5 fix: 复制完整Claude配置按钮增加export 2025-11-26 10:23:19 +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
github-actions[bot]
86cf907f3b chore: sync VERSION file with release v1.1.209 [skip ci] 2025-11-25 12:53:08 +00:00
shaw
919501a2f1 Merge branch 'fix/gemini-projectid-fallback' into dev 2025-11-25 20:44:48 +08:00
shaw
dea6964116 fix: 修复apikeys页面部分bug 2025-11-25 20:38:52 +08:00
曾庆雷
b619208970 修复:移除请求参数 projectId 降级,改为实时获取
根本原因:请求参数中的 projectId 是客户端缓存的,属于之前账户,
导致账户切换后使用错误的 projectId,返回 403 权限错误。

修改内容:
1. 移除对 request.project 的降级依赖
2. 当账户无 projectId 和 tempProjectId 时,实时调用 loadCodeAssist
3. 获取后缓存到 tempProjectId 供后续请求使用
4. 如果仍无法获取,返回 403 配置错误

影响端点:
- /v1internal:generateContent
- /v1internal:streamGenerateContent
2025-11-25 19:32:38 +08:00
曾庆雷
e0500f0530 修复:Gemini OAuth 账户 projectId 降级逻辑缺失
修复 3 个端点未使用 tempProjectId 的问题:
- /messages
- /v1internal:generateContent
- /v1internal:streamGenerateContent

优先级链:projectId -> tempProjectId -> 请求参数 -> null
2025-11-25 19:06:55 +08:00
github-actions[bot]
255b3a0a0d chore: sync VERSION file with release v1.1.208 [skip ci] 2025-11-25 07:03:21 +00:00
shaw
22fbabbc47 fix: 优化apikeys页面加载速度 2025-11-25 15:01:15 +08:00
github-actions[bot]
82e63ef55b chore: sync VERSION file with release v1.1.207 [skip ci] 2025-11-25 02:54:48 +00:00
shaw
25f455ac1c fix: 适配claude新的usage接口 2025-11-25 10:54:21 +08:00
shaw
a4dcfb842e refactor: 重构gemini转部分 2025-11-25 10:30:39 +08:00
github-actions[bot]
fab2df0cf5 chore: sync VERSION file with release v1.1.206 [skip ci] 2025-11-24 06:49:37 +00:00
shaw
8f2cf211de fix: 修复gemini重置状态按钮未显示的问题 2025-11-24 14:49:12 +08:00
github-actions[bot]
6ebe7d0250 chore: sync VERSION file with release v1.1.205 [skip ci] 2025-11-24 02:54:15 +00:00
shaw
a0a7aae28e fix: 暂时移除gemini 的429处理 2025-11-24 10:53:51 +08:00
github-actions[bot]
691b492bc7 chore: sync VERSION file with release v1.1.204 [skip ci] 2025-11-23 15:25:42 +00:00
shaw
8e09eb227e chore: release v1.1.204 [force release]
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 23:25:20 +08:00
shaw
c7276f10b8 feat: 增加Claude Code 调用 Gemini 3 模型说明 2025-11-23 23:21:45 +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
github-actions[bot]
b197cba325 chore: sync VERSION file with release v1.1.203 [skip ci] 2025-11-22 13:18:37 +00:00
Wesley Liddick
e4302f80c3 Merge pull request #698 from mikewong23571/feature/proxy-optimizations
perf(proxy): cache agents with opt-in pooling
2025-11-22 08:18:20 -05:00
mikewong23571
c47bb7295e perf(proxy): cache agents with opt-in pooling 2025-11-22 05:01:46 -08:00
github-actions[bot]
c0f517b10c chore: sync VERSION file with release v1.1.202 [skip ci] 2025-11-22 10:46:55 +00:00
shaw
57ce3ecf9c chore: trigger release [force release] 2025-11-22 18:46:25 +08:00
shaw
dfc2a8e053 chore: support force release trigger 2025-11-22 18:44:20 +08:00
shaw
145dc64a96 chore: trigger auto release 2025-11-22 18:41:24 +08:00
shaw
1b784dcb43 chore: trigger github flow 2025-11-22 18:39:42 +08:00
shaw
186d82bde9 docs: 更新gemini使用说明 2025-11-22 18:26:01 +08:00
shaw
c33771ef82 fix: split SSE chunks per event to avoid JSON parse errors 2025-11-22 18:10:54 +08:00
shaw
22e10c57ea Merge branch 'pr/gemini-ratelimit' into dev 2025-11-22 16:36:50 +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
github-actions[bot]
8882d92fd8 chore: sync VERSION file with release v1.1.201 [skip ci] 2025-11-20 13:03:27 +00:00
shaw
823be8acfc fix: 修复gemini转发未响应问题 2025-11-20 21:02:43 +08:00
github-actions[bot]
61929874eb chore: sync VERSION file with release v1.1.200 [skip ci] 2025-11-20 12:26:27 +00:00
Wesley Liddick
e9b6416c06 Merge pull request #689 from VeroFess/main
实现 Codex compact 转发
2025-11-20 07:26:11 -05:00
VeroFess
9b0a1f9bda 实现 Codex compact 转发:新增 /responses/compact 路由,选择 compact 上游端点,并在 compact 请求中去除 store 参数以避免 400 2025-11-20 20:05:10 +08:00
github-actions[bot]
14af4a4333 chore: sync VERSION file with release v1.1.199 [skip ci] 2025-11-20 06:06:57 +00:00