tbphp
426bde9a38
fix(cpa): 保留 Codex 和 Grok 的中途系统指令 (#633)
* fix(cpa): 保留 Codex 和 Grok 的中途系统指令
在 Anthropic 转换入口将 system 映射为 developer,保留消息内容和位置,并继续拒绝其他渠道的有损转换。
验证:make check;third_party/cpaembedded 中 go test -count=1 ./...。新增出站回归测试已在修复前复现拒绝,在修复后通过。
用户实测确认:Claude Code 使用 Anthropic 协议请求 Codex 账号的 GPT 模型正常。
* fix(cpa): 对齐计数和执行的系统指令转换
让 Codex/Grok 的 Anthropic 本地计数复用执行请求的指令角色映射,保持其他渠道计数行为不变。补充计数一致性回归测试和工具结果内容断言。
验证:计数回归测试先复现差异,修复后通过;make check 和 CPA embedded 全套测试通过。
2026-09-12 21:01:54 +08:00
..
2026-09-12 17:55:22 +08:00
2026-09-12 21:01:54 +08:00
2026-09-09 13:20:10 +08:00
2026-09-09 15:06:50 +08:00
2026-09-10 21:18:41 +08:00
2026-09-10 20:04:23 +08:00
2026-09-10 20:04:23 +08:00
2026-08-17 09:38:45 +08:00
2026-09-09 15:06:50 +08:00
2026-08-30 00:45:19 +08:00
2026-08-30 00:45:19 +08:00
2026-09-09 23:13:41 +08:00
2026-09-10 21:18:41 +08:00