Pengap
4d4a0be1ad
fix(apicompat): chat/completions file part 不再被静默丢弃,转换为 Responses input_file
/v1/chat/completions → Responses 转换层此前只处理 text 和 image_url 两种
content part,type:"file"(PDF 附件)被静默丢弃:请求返回 200、模型正常
回答,但 prompt 里没有文件(prompt_tokens 只剩纯文字)。
现将 file part 映射为 Responses API 的 input_file(filename/file_data/
file_id 透传),与同网关 /v1/responses + input_file 实测可用的格式一致。
无 file_data 且无 file_id 的空 file part 跳过,与空 image URL 行为一致。
参考上游 PR #2497(因混入无关改动未合并)。
2026-08-10 13:59:20 +08:00
..
2026-08-09 08:26:22 +00:00
2026-08-08 11:12:56 +08:00
2026-08-10 13:59:20 +08:00
2026-08-09 12:11:35 +08:00
2026-07-31 21:20:32 +08:00
2026-07-18 00:11:18 +08:00
2026-08-04 20:57:15 +08:00
2026-08-07 16:29:48 +08:00