ChatGPTNextWeb/NextChat

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

Open

#5312 aperta il 23 ago 2024

Vedi su GitHub
 (5 commenti) (1 reazione) (0 assegnatari)TypeScript (59.717 fork)batch import
help wanted

Metriche repository

Star
 (87.992 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.'
                    },
                ],
            }, ],
        });

Guida contributor