摘要: function fileToGenerativePart(path, mimeType) { return { inlineData: { data: Buffer.from(fs.readFileSync(path)).toString('base64'), mimeType, }, } } l 阅读全文
posted @ 2024-03-14 09:03 徐同保 阅读(1) 评论(0) 推荐(0) 编辑