同步小壹 R5 集成基线

This commit is contained in:
WuYongJie 2026-11-28 00:21:14 +08:00
commit 186385b8f9

View File

@ -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);