countTokens abstract method
Counts the number of tokens used in a prompt.
prompt
is a group of Contents to count tokens of.
Implementation
Future<CountTokensResponse> countTokens(List<Content> prompt);
Counts the number of tokens used in a prompt.
prompt
is a group of Contents to count tokens of.
Future<CountTokensResponse> countTokens(List<Content> prompt);