tokenCount method

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

The tokenizer belongs to the engine, not to a conversation, so a virtual session answers this as accurately as a live one.

Implementation

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