ChatGPTNextWeb/NextChat

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

Open

#5 312 ouverte le 23 août 2024

Voir sur GitHub
 (5 commentaires) (1 réaction) (0 assignés)TypeScript (59 717 forks)batch import
help wanted

Métriques du dépôt

Stars
 (87 992 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur