This repository was archived by the owner on Dec 16, 2025. It is now read-only.
google_generative_ai version 0.4.1
·
23 commits
to main
since this release
- Concatenate multiple
TextPartinto thetextString in case the model
replies with more than one part. - Fix handling of
formatargument toSchema.numberandSchema.integer. - Export
UsageMetadata. - Include the full
GenerateContentRequest(previously omitted
safetySettings,generationConfig,tools,toolConfig, and
systemInstruction) incountTokensrequests. This aligns the token count
with the token count the backend will see in practice for a
generateContentrequest. - Add a
textgetter onCandidateto make it easer to retrieve the text from
candidates other than the first in a response.