gemini.R 0.17.0
0.17.1
-
gen_image
has been deprecated; usenano_banana
. -
gemini_searchR
has been deprecated. See this - Added documentation for the
gemini.R
package. - 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_narrative
for table description - Added
gemini_structured
for structured API responses
0.13.0
- Relaxed the
model
parameter 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_search
for ground using gemini-2.0 models - Added Gemini searching
gemini_searchR
for 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-generation
model.
0.10.0
-
countTokens
function for countTokens API -
setEnv
function 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_audio
supports more thanmp3
. - gemini.R supports
2.0-flash-exp
as model.
0.6.1
- Generate roxygen with
gen_docs()
added. - Some terms are improved.
0.4.0
- Updated to use httr2
-
setAPI
now shows last 4 words of API key for confirmation. -
cat
updated using cli for better readability in console. -
gemini_image()
takes default prompt as “Explain this image” and example image of flower. See?gemini_image