github-actions[bot]
96ed57e0f4
chore: sync VERSION file with release v1.1.284 [skip ci]
v1.1.284
2026-02-27 03:26:17 +00:00
Wesley Liddick
afb8041c4a
Merge pull request #1024 from SunSeekerX/feat/oai_optimize2
...
Title: feat: 账户错误历史记录 + 完善 disableAutoProtection 覆盖
2026-02-27 11:26:04 +08:00
Xiaoyong
210eba4a46
fix: 解压 streaming 响应的 gzip 压缩,修复 SSE 数据损坏
...
Anthropic API (经 Cloudflare) 返回 Content-Encoding: gzip 的压缩响应。
非 streaming 处理器已有 zlib.gunzipSync 解压,但 streaming 处理器
直接对 gzip 二进制数据调用 chunk.toString(),导致非法 UTF-8 字节
被替换为 U+FFFD,SSE 数据损坏。
修复:在 streaming 的 res.on('data') 之前检测 content-encoding,
如为 gzip/deflate 则通过 zlib 管道解压后再处理。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-02-27 11:16:42 +08:00
SunSeekerX
0711b0fd25
1
2026-02-26 23:10:03 +08:00
SunSeekerX
b5f24d04a3
1
2026-02-26 23:07:19 +08:00
github-actions[bot]
6aa416e2fc
chore: sync VERSION file with release v1.1.283 [skip ci]
v1.1.283
2026-02-26 01:00:31 +00:00
Wesley Liddick
dab67432a8
Merge pull request #1016 from yuanhaitao/fix/block-1m-context-window
...
fix: 拦截 1M 上下文窗口请求,避免账户被误标记为限流
2026-02-26 09:00:14 +08:00
Wesley Liddick
d2dc02a414
Merge pull request #1013 from DragonFSKY/fix/unified-gemini-standard-handler [skip ci]
...
fix: 切换 /v1/chat/completions Gemini 处理器为 standard 版本,支持 API Key 账户
2026-02-26 09:00:06 +08:00
Wesley Liddick
198db9d2af
Merge pull request #1015 from DragonFSKY/feat/unified-endpoint-response-format [skip ci]
...
feat: /v1/chat/completions 返回标准 OpenAI Chat Completions 格式
2026-02-26 08:59:31 +08:00
yuanhaitao
81c7a207f3
fix: 拦截 1M 上下文窗口请求,避免不支持的账户被误标记为限流
...
当客户端使用 [1m] 模型时,请求会携带 anthropic-beta: context-1m 头。
部分账户订阅(如 Max)不支持 1M 上下文,上游返回 429 后系统会误将
账户标记为限流,导致后续所有请求被拦截。
现在在路由层直接检测 context-1m beta header,返回 403 提示用户
切换模型,不转发请求、不触发限流标记。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-25 23:27:53 +08:00
shaw
68d1391bca
fix: 更新上游模型定价文件
2026-02-25 15:29:32 +08:00
github-actions[bot]
0901a27a6a
chore: sync VERSION file with release v1.1.282 [skip ci]
v1.1.282
2026-02-25 02:29:54 +00:00
Wesley Liddick
b5425f1df7
Merge pull request #1009 from sczheng189/feature/claude_price_count
...
claude计费相关修改
2026-02-25 10:29:38 +08:00
Wesley Liddick
11a1925a13
Merge pull request #1008 from DragonFSKY/fix/sticky-session-temp-unavailable-fallback [skip ci]
...
fix: 补全账户临时不可用检查,修复粘性会话不自动切换
2026-02-25 10:29:26 +08:00
谢栋梁
a6f8800630
feat: 统一端点返回标准 OpenAI Chat Completions 格式
...
为 unified /v1/chat/completions 端点添加双向格式转换:
- Codex: Chat Completions 请求转 Responses API 格式,响应转回 Chat Completions(流式+非流式)
- Gemini: 原生响应转为标准 OpenAI Chat Completions 格式(流式+非流式)
- 工具名 64 字符缩短与逆向恢复,非 function 工具原样透传
- 注入 Codex CLI 系统提示词,与 handleResponses 适配行为一致
2026-02-24 23:47:15 +08:00
sczheng189
a3d6b44f01
refactor: 重构 Fast Mode 相关逻辑
2026-02-24 23:35:00 +08:00
谢栋梁
5b01838eea
fix: 切换统一端点 Gemini 处理器为 standard 版本,支持 API Key 账户
2026-02-24 23:32:08 +08:00
谢栋梁
bd437e29f2
fix: 补全账户临时不可用检查,修复粘性会话及池选择不自动切换的问题
...
_isAccountAvailable()、_getAllAvailableAccounts() 专属账户优先分支、
selectAccountFromGroup() 和 _getAvailableCcrAccounts() 均缺少
isAccountTemporarilyUnavailable() 检查,导致账户被 markTempUnavailable
标记后仍可能被选中,粘性会话不回退、池选择不排除。
本次在所有缺失路径统一补充该检查,与已有的共享池选择逻辑对齐。
2026-02-24 22:26:36 +08:00
sczheng189
4b220263eb
fix: 增强限流跟踪逻辑,支持预计算费用的传递,修复窗口限制计费错误
2026-02-24 18:17:25 +08:00
sczheng189
915544cc73
feat: 增强费用计算逻辑,支持实时和存储费用的处理
2026-02-24 16:59:59 +08:00
github-actions[bot]
5d0c8144dd
chore: sync VERSION file with release v1.1.281 [skip ci]
v1.1.281
2026-02-24 02:05:39 +00:00
shaw
ba7024a8dc
fix: 修复claude code客户端system billing-header部分的判断
2026-02-24 10:05:16 +08:00
Wesley Liddick
8b684117af
Merge pull request #996 from yptse123/feat/per-key-weekly-reset-time [skip ci]
...
feat: add per-API-key weekly cost reset day/hour configuration
2026-02-24 08:53:47 +08:00
Wesley Liddick
0b7a2aa9a2
Merge pull request #981 from codsaf/fix/gemini-stream-usage [skip ci]
...
fix(gemini): resolve stream usage data loss due to split chunks
2026-02-24 08:53:27 +08:00
Wesley Liddick
66f5208de0
Merge pull request #979 from Jackwwg83/fix/enterprise-profile-account-type [skip ci]
...
Fix Claude Enterprise account type detection from OAuth profile
2026-02-24 08:52:25 +08:00
Wesley Liddick
4bbe264b8c
Merge pull request #965 from bensonz/main [skip ci]
...
fix: Bedrock compatibility — 修复了 bedrock 不能用的问题. cache_control sanitization, Opus 4.6 mapping, [1m] suffix stripping
2026-02-24 08:45:36 +08:00
Wesley Liddick
ffc7e920c3
Merge pull request #969 from shiiwuz/debug/sticky-session-pick-logging [skip ci]
...
Sticky session: support OpenClaw prompt_cache_key fallback
2026-02-24 08:40:07 +08:00
Wesley Liddick
5a42294a08
Merge pull request #997 from mylukin/feat/add-gemini-3.1-pro-preview [skip ci]
...
feat: add gemini-3.1-pro-preview model support
2026-02-24 08:38:48 +08:00
Wesley Liddick
8723c4afa1
Merge pull request #1002 from yuanhaitao/fix/weekly-claude-cost-stats [skip ci]
...
fix: 修复 Claude 周额度统计范围,从仅 Opus 扩展到全部 Claude 模型
2026-02-24 08:37:57 +08:00
github-actions[bot]
b227617f40
chore: sync VERSION file with release v1.1.280 [skip ci]
v1.1.280
2026-02-24 00:31:36 +00:00
Wesley Liddick
259e2aefbb
Merge pull request #991 from DragonFSKY/fix/403-permission-error-ban-detection
...
fix: 识别 403 permission_error 为账号封禁状态,避免 30 分钟无限循环
2026-02-24 08:31:16 +08:00
Wesley Liddick
5730542294
Merge pull request #986 from sususu98/fix/error-sanitizer-upstream-format [skip ci]
...
fix: errorSanitizer 无法识别 Anthropic 错误格式导致 400 误映射为 E015/500
2026-02-24 08:30:55 +08:00
Wesley Liddick
e0d36fcfdd
Merge pull request #952 from sczheng189/feature/claude_price_count [skip ci]
...
feat: 1m上下文计费,1h计费
2026-02-24 08:30:37 +08:00
sczheng189
823693afda
格式化
2026-02-23 23:27:19 +08:00
sczheng189
93b655d65c
Revert "fix: update the limit logic, and if the daily limit is not reached after reaching the opus weekly limit, other claude models can be used"
...
This reverts commit f444af49bf .
2026-02-23 21:23:38 +08:00
sczheng189
6e7c3b2fb6
Merge remote-tracking branch 'upstream/main' into feature/claude_price_count
2026-02-23 21:21:11 +08:00
sczheng189
bfae62bfeb
feat: 添加对 ephemeral 5m 和 1h 令牌的支持,优化费用计算逻辑
2026-02-23 21:20:18 +08:00
sczheng189
5376428dd9
fix: 添加对 ephemeral 5m 和 1h 令牌的支持,优化费用计算逻辑
2026-02-23 20:12:42 +08:00
yuanhaitao
67a81e4941
fix: 修复 Claude 周额度统计范围,从仅 Opus 扩展到全部 Claude 模型
...
- 将 isOpusModel 替换为 isClaudeFamilyModel,使周额度限制覆盖所有 Claude 系列模型
- 前端 ApiKeysView 新增 Claude 周限制进度条显示
- 修复"无任何限制"提示在有周限制时仍然显示的问题
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-23 16:02:26 +08:00
Lukin
9bf52c67b1
feat: add gemini-3.1-pro-preview model support
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-22 21:12:17 +08:00
yptse123
955b2af08e
feat: add per-API-key weekly cost reset day/hour configuration
...
Allow each API key to configure its own weekly reset day (1-7, Mon-Sun)
and hour (0-23) so the relay service's weekly limit tracking can align
with upstream Claude account reset schedules instead of using a fixed
Monday 00:00 boundary for all keys.
2026-02-22 17:56:42 +08:00
bensonz
9256d02e89
fix: ESLint errors in _sanitizeCacheControl — strict equality and curly braces
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-21 12:11:07 +08:00
谢栋梁
ce7df12281
fix: 识别 403 permission_error 为账号封禁状态,避免 30 分钟无限循环
...
Claude 封禁账号后返回 HTTP 403 + permission_error:
"OAuth authentication is currently not allowed for this organization."
原有的 _isOrganizationDisabledError 只检测 HTTP 400,无法识别该错误。
且 else if 分支中通用 403 在 organizationDisabledError 之前,
即使修改函数也会被截断。
修复内容:
1. _isOrganizationDisabledError 兼容 403 + permission_error 场景
2. 非流式路径:将 organizationDisabledError 检测提前到通用 403 之前
3. 流式路径:在 403 分支内部优先判断是否为封禁性质的 403
Closes #990
2026-02-18 18:09:49 +08:00
sczheng189
3b25cf01ad
feat: 添加 Claude 计费特性和请求元信息支持,优化长上下文计费逻辑
2026-02-14 21:32:09 +08:00
Anonymous Contributor
3f81afabce
style(gemini): apply linter fixes for code quality check
2026-02-14 15:54:27 +08:00
Anonymous Contributor
3f0dabc5fa
fix(gemini): resolve incomplete fix and race conditions in usage capture
2026-02-14 15:44:25 +08:00
sususu
8f88cf8e91
fix: 修复上游400错误被错误映射为E015/500的问题
...
extractOriginalMessage 未处理 Anthropic 错误格式 {"error":{"message":"..."}},
导致消息提取为空,所有上游 400 错误回退为默认的 E015 Internal server error。
- 新增 error.error?.message 路径检查
- ERROR_MATCHERS 增加 invalid.*argument 匹配 INVALID_ARGUMENT 错误
2026-02-14 15:02:22 +08:00
Jackwwg83
a8afb1523b
style: format enterprise profile mapping line for prettier
2026-02-14 10:22:03 +08:00
github-actions[bot]
d6ced986b6
chore: sync VERSION file with release v1.1.279 [skip ci]
v1.1.279
2026-02-13 16:41:43 +00:00
Wesley Liddick
91ee5299ba
Merge pull request #983 from Wei-Shaw/revert-982-feat/add-gpt-5.3-codex-spark
...
Revert "feat: add gpt-5.3-codex-spark model support"
2026-02-14 00:41:27 +08:00