You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Concatenate multiple TextPart into the text String in case the model
replies with more than one part.
Fix handling of format argument to Schema.number and Schema.integer.
Export UsageMetadata.
Include the full GenerateContentRequest (previously omitted safetySettings, generationConfig, tools, toolConfig, and systemInstruction) in countTokens requests. This aligns the token count
with the token count the backend will see in practice for a generateContent request.
Add a text getter on Candidate to make it easer to retrieve the text from
candidates other than the first in a response.