mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
末尾 role 检查方案:当 messages / input / contents 数组末尾一项不是用户消息 (而是 assistant、tool / function_call_output 等)时,直接跳过内容审计, 从而避免 Agent 工具循环中同一用户输入被反复审计、计费、写日志。 Fixes #2678