mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-06 08:02:14 +00:00
对齐 CLIProxyAPI 的 xAI Reasoning Replay:在客户端不回传 thinking signature / encrypted_content 时,由网关代持并注入上一轮可回放 items。 变更摘要: - 新增 ReasoningReplayRepository 与 Memory/Redis 实现 - 新增 pkg/reasoningreplay:normalize/filter/insert/store/apply/capture - CLI Adapter:出站前 Apply,成功响应 CaptureBody 写回;compact 清理 - 配置 routing.reasoningReplayEnabled/TTL/maxEntries(默认开启) - settings 热更新时保留回放配置;补充改造文档与场景单测 不包含:通用 HTTP 响应缓存、Console/Web 路径、管理端 UI 开关。