gemini.R 0.17.0
0.17.1
-
gen_imagehas been deprecated; usenano_banana. -
gemini_searchRhas been deprecated. See this - Added documentation for the
gemini.Rpackage. - Updated hexsticker
0.16.0
API key transmission has been updated for improved security and compatibility. Previously, the API key was sent as a URL query parameter (e.g., ?key=YOUR_API_KEY). Now, all functions send the API key using the HTTP header
x-goog-api-key, following Google Gemini API best practices.This change enhances both security and future compatibility. Users can continue to set their API key using setAPI(“YOUR_API_KEY”). There is no change to the user-facing function interfaces. The old method of passing the API key as a URL parameter is no longer supported.
0.15.0
- Added
gemini_narrativefor table description - Added
gemini_structuredfor structured API responses
0.13.0
- Relaxed the
modelparameter validation to support newly released models likegemini-2.5-flash-preview-04-17 - Enhanced error handling across all functions for improved stability
- Standardized response processing across all API functions
- Updated documentation to reflect expanded model compatibility
0.12.0
- Added Gemini searching
gemini_searchfor ground using gemini-2.0 models - Added Gemini searching
gemini_searchRfor retrive using gemini-1.5 models
0.11.0
- Added Gemini 2.5-pro-exp model (
2.5-pro-exp-03-25) - Deprecated Gemini 2.0-pro-exp model (
2.0-pro-exp-02-05) - Now image generation possible with
gen_image()using2.0-flash-exp-image-generationmodel.
0.10.0
-
countTokensfunction for countTokens API -
setEnvfunction added. - Deprecated Gemini 1.5 models (
1.5-pro,1.5-flash) - Add CRANlogs badge in readme
0.9.0
- Updated parameters across all functions (
temperature,maxOutputTokens,topK,topP,seed) - Adjusted default values: temperature to 1 and maxOutputTokens to 8192, model as 2.0-flash
0.8.0
- Add Vertex AI with new functions:
token.vertex(),gemini.vertex(),gemini_image.vertex(),gemini_audio.vertex() - These functions are in experimental stage and may change in future versions.
0.7.0
- Generate unit test using
gen_test()added. -
gemini_audiosupports more thanmp3. - gemini.R supports
2.0-flash-expas model.
0.6.1
- Generate roxygen with
gen_docs()added. - Some terms are improved.
0.4.0
- Updated to use httr2
-
setAPInow shows last 4 words of API key for confirmation. -
catupdated using cli for better readability in console. -
gemini_image()takes default prompt as “Explain this image” and example image of flower. See?gemini_image
