google_generative_ai-v0.4.1
版本发布时间: 2024-05-24 05:49:30
google-gemini/generative-ai-dart最新发布版本:google_generative_ai-v0.4.5(2024-08-28 05:03:06)
- Concatenate multiple
TextPart
into thetext
String in case the model replies with more than one part. - Fix handling of
format
argument toSchema.number
andSchema.integer
. - Export
UsageMetadata
. - Include the full
GenerateContentRequest
(previously omittedsafetySettings
,generationConfig
,tools
,toolConfig
, andsystemInstruction
) incountTokens
requests. This aligns the token count with the token count the backend will see in practice for agenerateContent
request. - Add a
text
getter onCandidate
to make it easer to retrieve the text from candidates other than the first in a response.