ChatGPTNextWeb/NextChat

No need to upload images to your website when using gemini!

Open

#5,312 建立於 2024年8月23日

在 GitHub 查看
 (5 留言) (1 反應) (0 負責人)TypeScript (87,992 star) (59,717 fork)batch import
help wanted

描述

I have noticed that if I paste an image it's uploaded to your website.

There is no need.

Images, pdfs and many other document types can be sent INLINE with the text prompt.

For example:

        const data = JSON.stringify({
            contents: [{
                parts: [{
                        inlineData: {
                            mimeType: mimeType,
                            data: fileContent.toString('base64')
                        }
                    },
                    {
                        text: 'Analyze this.'
                    },
                ],
            }, ],
        });

貢獻者指南