GeminiWithFiles was updated to 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-latesttomodels/gemini-1.5-flash-latest. - The export values with
exportTotalTokenswere changed. After v2.x.x, when this is true, the objectusageMetadataincludingpromptTokenCount,candidatesTokenCount,totalTokenCountis exported. At that time, the generated content andusageMetadataare returned as an object. - After v2.x.x, the large files can be uploaded to Gemini. This is from this respository and this post.
You can see the detail information here https://github.com/tanaikech/GeminiWithFiles