- getEncoder() - Method in class xyz.felh.openai.jtokkit.api.GptBytePairEncodingParams
-
- getEncoding(String) - Method in interface xyz.felh.openai.jtokkit.api.EncodingRegistry
-
Returns the encoding with the given name, if it exists.
- getEncoding(EncodingType) - Method in interface xyz.felh.openai.jtokkit.api.EncodingRegistry
-
Returns the encoding with the given type.
- getEncoding(EncodingType) - Static method in class xyz.felh.openai.jtokkit.utils.TikTokenUtils
-
获取一个Encoding对象,通过Encoding类型
- getEncoding(String) - Static method in class xyz.felh.openai.jtokkit.utils.TikTokenUtils
-
获取一个Encoding对象,通过模型名称
- getEncodingForModel(String) - Method in interface xyz.felh.openai.jtokkit.api.EncodingRegistry
-
Returns the encoding that is used for the given model type, if it exists.
- getEncodingForModel(ModelType) - Method in interface xyz.felh.openai.jtokkit.api.EncodingRegistry
-
Returns the encoding that is used for the given model type.
- getEncodingType() - Method in enum xyz.felh.openai.jtokkit.api.ModelType
-
Returns the encoding type that is used by this model type.
- getMaxContextLength() - Method in enum xyz.felh.openai.jtokkit.api.ModelType
-
Returns the maximum context length that is supported by this model type.
- getModelTypeByName(String) - Static method in class xyz.felh.openai.jtokkit.utils.TikTokenUtils
-
获取modelType
- getName() - Method in interface xyz.felh.openai.jtokkit.api.Encoding
-
Returns the name of this encoding.
- getName() - Method in enum xyz.felh.openai.jtokkit.api.EncodingType
-
- getName() - Method in class xyz.felh.openai.jtokkit.api.GptBytePairEncodingParams
-
- getName() - Method in enum xyz.felh.openai.jtokkit.api.ModelType
-
Returns the name of the model type as used by the OpenAI API.
- getPattern() - Method in class xyz.felh.openai.jtokkit.api.GptBytePairEncodingParams
-
- getSpecialTokensEncoder() - Method in class xyz.felh.openai.jtokkit.api.GptBytePairEncodingParams
-
- getTokens() - Method in class xyz.felh.openai.jtokkit.api.EncodingResult
-
- GptBytePairEncodingParams - Class in xyz.felh.openai.jtokkit.api
-
Parameter for the byte pair encoding used to tokenize for the OpenAI GPT models.
- GptBytePairEncodingParams(String, Pattern, Map<byte[], Integer>, Map<String, Integer>) - Constructor for class xyz.felh.openai.jtokkit.api.GptBytePairEncodingParams
-