Releases: tanaikech/GeminiWithFiles
Releases · tanaikech/GeminiWithFiles
v2.0.2
v2.0.1
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.
v1.0.7
-
v1.0.7 (July 4, 2024)
- From this version, when
doCountToken: true
andexportTotalTokens: true
are used in the object of the argument ofgeminiWithFiles
, the total tokens are returned. In this case, the returned value is an object like{returnValue: "###", totalTokens: ###}
.
- From this version, when
v1.0.6
v1.0.5
v1.0.4
-
v1.0.4 (May 29, 2024)
- Recently, when
model.countToken
is used with the uploaded files, I confirmed that an error likeYou do not have permission to access the File ### or it may not exist.
occurred. In order to handle this issue, I modified the library. - In order to use the movie files for generateContent, I modified the library. Ref
- Recently, when
v1.0.3
v1.0.2
-
v1.0.2 (May 7, 2024)
- For generating content,
parts
was added. From this version, you can select one ofq
,jsonSchema
, andparts
. - From this version,
systemInstruction
can be used. - In order to call the function call,
toolConfig
was added to the request body.
- For generating content,