粘贴图片 → UI有附件 → 但数据没到AI

核心问题:粘贴图片 → UI有附件 → 但数据没到AI
前端链路验过是通的:paste → dataURL → attachment → optimisticParts 都对
断点: 主进程调用 AI SDK 前,type: "file" 的 content part 被丢了
嫌疑: convertToModelMessages 没正确处理 image mediaType 的 file part

bug-report-image-paste.md

3.3 KB

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
🐛

Bug Reports

Date

About 1 hour ago

Author

ban ban

Subscribe to post

Get notified by email when there are changes.