Closed andrewheard closed 1 month ago
countTokens
generateContentRequest
contents
GenerateContentRequest
model
generateContent
generateContentStream
countTokens
implementation to populategenerateContentRequest
instead ofcontents
in the request body.GenerateContentRequest
encoding implementation to serialize themodel
field.countTokens
but is always serialized (it is ignored by the backend ingenerateContent
andgenerateContentStream
).