tokenCount method

  1. @override
Future<int?> tokenCount(
  1. String text
)
override

Null on the web: the runtime counts a conversation's tokens (getTokenCount()), but has no tokenizer for a text.

Implementation

@override
Future<int?> tokenCount(String text) => Future.value(null);