Uses of Interface
xyz.felh.openai.jtokkit.api.Encoding
Packages that use Encoding
-
Uses of Encoding in xyz.felh.openai.jtokkit.api
Methods in xyz.felh.openai.jtokkit.api that return EncodingModifier and TypeMethodDescriptionEncodingRegistry.getEncoding(EncodingType encodingType) Returns the encoding with the given type.EncodingRegistry.getEncodingForModel(ModelType modelType) Returns the encoding that is used for the given model type.Methods in xyz.felh.openai.jtokkit.api that return types with arguments of type EncodingModifier and TypeMethodDescriptionEncodingRegistry.getEncoding(String encodingName) Returns the encoding with the given name, if it exists.EncodingRegistry.getEncodingForModel(String modelName) Returns the encoding that is used for the given model type, if it exists.Methods in xyz.felh.openai.jtokkit.api with parameters of type EncodingModifier and TypeMethodDescriptionEncodingRegistry.registerCustomEncoding(Encoding encoding) Registers a new custom encoding with the given name. -
Uses of Encoding in xyz.felh.openai.jtokkit.utils
Methods in xyz.felh.openai.jtokkit.utils that return EncodingModifier and TypeMethodDescriptionstatic EncodingTikTokenUtils.getEncoding(String modelName) 获取一个Encoding对象,通过模型名称static EncodingTikTokenUtils.getEncoding(EncodingType encodingType) 获取一个Encoding对象,通过Encoding类型Methods in xyz.felh.openai.jtokkit.utils with parameters of type EncodingModifier and TypeMethodDescriptionstatic String通过Encoding和encoded数组反推text信息通过Encoding和text获取编码数组static int通过Encoding计算text信息的tokens