public static List<Integer> encode(Encoding enc, String text) {
        return isBlank(text) ? new ArrayList<>() : enc.encode(text);
    }
Get encoding array through Encoding and text.

@param enc  Encoding type
@param text Text information
@return Encoding array
api/src/main/java/com/theokanning/openai/utils/TikTokensUtil.java