Since presumably other providers will add this too. Maybe something like this? ```R 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
larry77 commentedon Feb 14, 2025
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?
hadley commentedon Feb 14, 2025
@larry77 yes, for any file.
Add gemini_upload()
Implement `gemini_upload()` (#333)