Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 968 Bytes

CountTextTokensResponse.md

File metadata and controls

50 lines (29 loc) · 968 Bytes

google.generativeai.protos.CountTextTokensResponse

View source on GitHub

A response from CountTextTokens.

It returns the model's token_count for the prompt.

Attributes

token_count

int

The number of tokens that the model tokenizes the prompt into.

Always non-negative.