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-08 14:39:22 +08:00
2026-08-05 22:35:01 +08:00
2026-08-10 10:53:17 +08:00
2026-07-27 15:12:51 +08:00
2026-08-06 14:10:41 +08:00
2026-08-10 13:59:20 +08:00
2026-07-25 12:51:20 +08:00
2026-08-09 20:58:07 +08:00
2026-08-03 17:38:04 +08:00
2026-08-09 15:53:40 +08:00
2026-08-10 10:52:14 +08:00
2026-07-27 17:08:41 +08:00
2026-08-08 10:26:16 +08:00