Uses of Enum Class
xyz.felh.openai.jtokkit.api.EncodingType
Packages that use EncodingType
-
Uses of EncodingType in xyz.felh.openai.jtokkit.api
Methods in xyz.felh.openai.jtokkit.api that return EncodingTypeModifier and TypeMethodDescriptionstatic EncodingTypeReturns the enum constant of this class with the specified name.static EncodingType[]EncodingType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in xyz.felh.openai.jtokkit.api that return types with arguments of type EncodingTypeMethods in xyz.felh.openai.jtokkit.api with parameters of type EncodingTypeModifier and TypeMethodDescriptionEncodingRegistry.getEncoding(EncodingType encodingType) Returns the encoding with the given type. -
Uses of EncodingType in xyz.felh.openai.jtokkit.utils
Methods in xyz.felh.openai.jtokkit.utils with parameters of type EncodingTypeModifier and TypeMethodDescriptionstatic StringTikTokenUtils.decode(EncodingType encodingType, List<Integer> encoded) 通过EncodingType和encoded编码数组,反推字符串文本TikTokenUtils.encode(EncodingType encodingType, String text) 获取encode的编码数组static EncodingTikTokenUtils.getEncoding(EncodingType encodingType) 获取一个Encoding对象,通过Encoding类型static intTikTokenUtils.tokens(EncodingType encodingType, String text) 计算指定字符串的tokens,通过EncodingType