Skip to content

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

@0wwafa

Description

@0wwafa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions