computeTokens method
Return a list of tokens based on the input text.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
@override
Future<ComputeTokensResponse> computeTokens(
ComputeTokensRequest request,
) async {
if (isClosed) throw StateError('Service is closed');
if (_computeTokens case final computeTokens?) {
return computeTokens(request);
}
throw UnsupportedError('computeTokens');
}