v2.0.0
-
v2.0.0 (August 3, 2024)
- From this version, the following changes were made.
- PDF data can be directly used. Ref By this, PDFApp is not required to be used. By this, the script can be used without async/await.
- As the default,
functions: {}
is used. So, the default function calling was removed. Because in the current stage, JSON output can be easily returned using a JSON schema andresponse_mime_type
. Ref Ref - The default model was changed from
models/gemini-1.5-pro-latest
tomodels/gemini-1.5-flash-latest
. - The export values with
exportTotalTokens
were changed. After v2.x.x, when this is true, the objectusageMetadata
includingpromptTokenCount
,candidatesTokenCount
,totalTokenCount
is exported. At that time, the generated content andusageMetadata
are returned as an object. - After v2.x.x, the large files can be uploaded to Gemini. This is from this respository and this post.