- pdf_path
Path(s) to the local file(s). Can be a character vector.
- prompt
The prompt to send to Gemini (e.g., "Summarize these documents").
- type
File type. One of "PDF", "JavaScript", "Python", "TXT", "HTML", "CSS", "Markdown", "CSV", "XML", "RTF". Default is "PDF".
- api_key
Gemini API key. Defaults to Sys.getenv("GEMINI_API_KEY")
. The API key is sent via the HTTP header x-goog-api-key
.
- large
Logical. If TRUE
, use the file upload API for large files (only one file supported). Default is FALSE
.
- local
Logical. If TRUE
, treat pdf_path
as a local file path. If FALSE
, download from URL. Default is FALSE
.