Skip to content

Support for gemini files upload #310

Closed

Description

@hadley

Since presumably other providers will add this too.

Maybe something like this?

chat <- chat_gemini()
uploaded <- chat$upload_file("my-big-pdf.pdf")
chat$chat(uploaded, "What's the title?")

Gemini automatically deletes uploaded files after two days.

API docs at https://ai.google.dev/gemini-api/docs/document-processing?lang=rest#large-pdfs

Activity

  1. larry77 commented on Feb 14, 2025

    @larry77

    Thanks for this, I am very interested since gemini is so far my choice as an LLM. Will this work also for text and image files?

  2. hadley commented on Feb 14, 2025

    @hadley
    MemberAuthor

    @larry77 yes, for any file.

  3. added a commit that references this issue on Feb 21, 2025
    96def23
  4. added a commit that references this issue on Feb 25, 2025
    38969e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions