Chenyme
fa13c08cac
fix: preserve rate limits across reasoning recovery
2026-07-21 11:43:12 +08:00
defineS6
0316c22a9d
test: 覆盖百万级上下文压缩恢复
2026-07-21 11:05:40 +08:00
defineS6
454692cdcd
fix: 保留推理恢复后的限流响应
2026-07-21 09:45:57 +08:00
Chenyme
ca8b2474bf
Merge pull request #721 from chenyme/claude_code
...
fix: add stateless recovery for compaction decode failures
2026-07-20 22:09:54 +08:00
Chenyme
10d05e9ad1
Merge branch 'main' into claude_code
2026-07-20 22:04:57 +08:00
Chenyme
77519e05f9
Merge pull request #720 from LLwill/codex/v3-flaresolverr-min
...
feat: restore managed FlareSolverr clearance for Grok Web
2026-07-20 22:04:06 +08:00
Chenyme
5d3023ef0b
feat: implement optional auto-clean for reauthRequired accounts
2026-07-20 21:57:49 +08:00
Chenyme
8f27a830e6
Merge pull request #719 from DeliciousBuding/feat/auto-clean-reauth
...
feat: 可选自动清理 reauthRequired 账号(默认关闭)
2026-07-20 20:17:08 +08:00
Chenyme
4c0e5939c2
refactor: update account auto-clean logic and improve related tests
2026-07-20 20:03:47 +08:00
Chenyme
153bcaa988
fix: add stateless recovery for compaction decode failures
2026-07-20 18:11:56 +08:00
LLwill
a4478b7800
fix(frontend): use refreshEgressClearance API name and string ids
...
Align FlareSolverr refresh action with current settings-api types.
2026-07-20 17:35:11 +08:00
LLwill
e2fe5f212c
fix: complete FlareSolverr port onto upstream v3.0.5
...
Adapt clearance manager wiring to the current sticky-proxy egress stack
and browser client API after rebasing onto origin/main.
2026-07-20 17:35:01 +08:00
LLwill
46483ab241
feat: add managed FlareSolverr clearance
2026-07-20 17:34:51 +08:00
Codex
a9f236c74c
Merge remote-tracking branch 'origin/main' into feat/auto-clean-reauth
...
# Conflicts:
# frontend/src/shared/i18n/index.ts
2026-07-20 16:10:43 +08:00
Chenyme
c7b4a51aa0
Merge branch 'main' of https://github.com/chenyme/grok2api
v3.0.6
2026-07-20 15:48:59 +08:00
Chenyme
cf859b5bf3
chore: bump version to v3.0.6
2026-07-20 15:47:48 +08:00
Chenyme
0e0026679e
Merge pull request #718 from chenyme/grok_build_0.2.106
...
feat: align Grok Build 0.2.106 protocol compatibility
2026-07-20 15:47:28 +08:00
Chenyme
3019b0cbfa
feat: align Grok Build 0.2.106 protocol compatibility
2026-07-20 15:43:16 +08:00
Chenyme
dbdf065670
Merge pull request #717 from chenyme/key
...
feat: implement unlimited RPM and concurrency options for client keys and enhance related tests
2026-07-20 15:14:24 +08:00
Chenyme
a801c5c7e5
feat: implement unlimited RPM and concurrency options for client keys and enhance related tests
2026-07-20 15:10:40 +08:00
Chenyme
39b22f3f4c
Merge pull request #716 from chenyme/dialog
...
refactor: improve ModelsPage dialog layout and enhance i18n descriptions
2026-07-20 14:55:27 +08:00
Chenyme
b1a80d3dd2
refactor: improve ModelsPage dialog layout and enhance i18n descriptions
2026-07-20 14:49:47 +08:00
Chenyme
1c13dc6195
Merge pull request #714 from chenyme/trace
...
fix: enhance stream failure handling and diagnostics in gateway
2026-07-20 14:16:41 +08:00
Chenyme
bf13ce1b55
Merge branch 'main' into trace
2026-07-20 14:12:32 +08:00
Chenyme
e169ae1dd1
Merge pull request #713 from damowang2507/fix/responses-multimodal-tool-output
...
fix: preserve multimodal Responses tool outputs
2026-07-20 14:12:20 +08:00
Chenyme
2690a38066
Merge branch 'main' into fix/responses-multimodal-tool-output
2026-07-20 14:07:02 +08:00
Chenyme
c936ab110f
feat: enhance media audit logging and response summarization for text and image content
2026-07-20 14:06:35 +08:00
Codex
32e9e1cbdb
test: tighten assertMissing to check ErrNotFound
...
Replace err==nil with errors.Is(err, repository.ErrNotFound) so DB
blowups do not masquerade as successful deletions in auto-clean tests.
2026-07-20 13:23:09 +08:00
Chenyme
d091294e06
fix: enhance stream failure handling and diagnostics in gateway
2026-07-20 11:36:42 +08:00
Chenyme
3f6ea870d6
Merge pull request #708 from YuJunZhiXue/fix/official-prompt-cache-cpa
...
fix: align official Grok prompt cache with CPA for Sub2API
2026-07-20 11:16:27 +08:00
Chenyme
3c4e0ef174
fix: enhance build session identity handling and response ownership tracking
2026-07-20 10:26:59 +08:00
Codex
87abeed580
test: prove auto-clean enable/wake never deletes immediately
...
Start the scheduler after enable and after a hot-reload wake; aged
reauth accounts must remain until a timer tick runs the cleaner.
2026-07-20 10:00:36 +08:00
Codex
b848ba72bd
fix: coerce auto-clean switches to controlled booleans
...
Avoid undefined checked values while settings are still loading so the
account-maintenance switches stay controlled components.
2026-07-20 07:56:10 +08:00
Codex
b710e95402
fix: nil-safe sticky cleanup on batch disable
...
Guard BatchUpdate sticky deletes when sticky store is nil, matching
BatchDelete/Delete/auto-clean. gofmt auto-clean tests only.
2026-07-20 07:28:03 +08:00
Codex
ccec13f485
fix: nil-safe sticky cleanup on BatchDelete
...
Match Delete/auto-clean sticky guards so tests and partial wiring with nil
sticky store cannot panic. gofmt schema/account repository noise.
2026-07-20 06:38:40 +08:00
Codex
26a6995eaa
refactor: share media skip helper and tighten auto-clean polish
...
Extract excludeAccountsWithActiveMediaJobs for pre/post-lock filtering.
Log min_age and include_disabled on successful scans; clamp config tests.
Treat undefined auto-clean switch as off while settings load.
2026-07-20 06:25:40 +08:00
Codex
2f3f08f5cb
fix: delay auto-clean until next interval after enable
...
Hot-reload and first enable only reschedule the timer; hard-delete runs
on tick only. Align README/i18n, fix settings section indent, ignore
local tmp-ui-preview.
2026-07-20 06:16:39 +08:00
Codex
8f376cf082
fix: gate auto-clean UI behind hard-delete confirm
...
Require AlertDialog before enabling auto-clean or include-disabled.
Disable child controls when auto-clean is off; soften accounts decoder
defaults for older backends; drop dead 30s backoff branch.
2026-07-20 06:03:11 +08:00
Codex
f9b3eef933
fix: seal reauth auto-clean audit findings
...
Drain stale autoCleanWake so the first run waits one interval.
Recheck active media jobs after FOR UPDATE to close the TOCTOU window.
Add settings defaults/roundtrip tests, multi-batch cursor proof,
null-anchor/queued-media skip tests, and second-mark anchor stability.
2026-07-20 05:01:02 +08:00
Codex
acb822e452
fix: harden reauth auto-clean delete path and anchors
...
Use reauth_marked_at as minAge clock, skip media-blocked accounts without
failing the batch, rename include-disabled setting, and cover aging/media/multi-batch.
2026-07-20 03:00:21 +08:00
大魔王
fb5932bdcf
fix: preserve multimodal Responses tool outputs
2026-07-20 02:48:31 +08:00
Codex
65c85f2463
feat: add opt-in auto-clean for reauthRequired accounts
...
Add a default-off runtime setting that periodically deletes accounts already
marked reauthRequired after a minimum age. Preserve cooldown-only accounts and
permanent-refresh drain semantics; wire settings end-to-end including admin UI.
2026-07-20 01:26:28 +08:00
yang
539a6ae20e
fix: harden cache affinity and stream usage capture for all protocols
...
补齐复核发现的遗漏,确保 Codex(OpenAI)/Anthropic 缓存统计与亲和更稳:
1) soft session 纳入顶层 instructions/system(Responses/Chat 常见)
2) 流式 usage 不再要求 TotalTokens>0 才采纳;合并多帧避免半截帧抹掉 cached
3) conversation streamConverter 在仅有 cached_tokens 时也更新 usage
回归:stream merge Anthropic/Chat、instructions soft session、既有三协议解析。
2026-07-19 18:13:21 +08:00
yang
4d48031900
fix: record Anthropic/Chat cache tokens and recover decrypt-failed credentials
...
1) Usage 统计:
- Anthropic Messages 的 cache_read_input_tokens 写入统一 CachedInputTokens
- OpenAI Chat Completions 的 prompt_tokens_details.cached_tokens 同样写入
- Responses input_tokens_details.cached_tokens 行为保持
- Chat completion_tokens_details.reasoning_tokens 一并兼容
- 增加 Messages / Chat / 优先级回归测试
2) 凭据刷新:
- credential_decrypt_failed 不再标 Permanent(本地加密密钥问题可恢复)
- 已标记 permanent 的 decrypt_failed 允许 force/批量调度重试
- invalid_grant 等真正 OAuth 永久失败仍阻断
- 增加密钥恢复后可重试 + invalid_grant 仍永久 的回归测试
2026-07-19 17:37:19 +08:00
yang
f65a07e794
fix: align official Grok prompt cache with CPA for Sub2API
...
官方 cached_tokens 长期为 0 的根因不是 reasoning-replay,而是会话亲和被打散:
空 session 时每请求随机 x-grok-conv-id,且无消息 hash 粘滞兜底。
对齐 CLIProxyAPI 行为:
- 无稳定 session 时不再伪造随机 conv-id / session-id
- 显式 prompt_cache_key / Claude session 生成跨轮稳定 upstreamID
- 无 session 时用 system+首条 user 消息锚点 soft session(多轮不漂移)
- 扩展 Sub2API 会话信号提取:session_id / conversation_id / prompt_cache_key / x-grok-conv-id
- 租户隔离与按模型 affinity 保持不变
测试覆盖:gateway soft session、Sub2API e2e 身份、adapter 空 key、inference seed 提取。
2026-07-19 16:16:56 +08:00
Chenyme
d74b153966
chore: bump version from v3.0.4 to v3.0.5
v3.0.5
2026-07-19 15:46:19 +08:00
Chenyme
c581e9fe14
Merge pull request #707 from chenyme/creative_console
...
feat: add marked library and enhance creative console API for chat response handling
2026-07-19 15:44:35 +08:00
Chenyme
269a81bc4c
feat: add marked library and enhance creative console API for chat response handling
2026-07-19 15:38:54 +08:00
Chenyme
39b6175bc2
Merge pull request #706 from chenyme/settings
...
refactor: update UI components and styles for consistency and improved user experience
2026-07-19 14:20:05 +08:00
Chenyme
98c1bb24d7
refactor: update UI components and styles for consistency and improved user experience
2026-07-19 14:15:58 +08:00