diff --git a/apps/detail-agent-pi/src/agent.mjs b/apps/detail-agent-pi/src/agent.mjs index 53c81ee3..bc50afd2 100644 --- a/apps/detail-agent-pi/src/agent.mjs +++ b/apps/detail-agent-pi/src/agent.mjs @@ -488,6 +488,7 @@ export class DetailPiAgent { } if (encoded && api === 'openai-completions') payload.response_format = { type: 'json_object' }; if (encoded && api === 'openai-responses') payload.text = { format: { type: 'json_object' } }; + // Private project evidence: BODY ONLY, never the fetch headers or API Key. promptCacheKeyPresent = typeof payload.prompt_cache_key === 'string'; if (!worker && process.env.XIAOYI_DUMP_RAW_PAYLOADS === '1') { await atomic(path.join(store.dir, 'payloads', round.id + '.json'), payload);