| Package | Description |
|---|---|
| xyz.felh.openai.jtokkit.api | |
| xyz.felh.openai.jtokkit.utils |
| Modifier and Type | Method and Description |
|---|---|
static ModelType |
ModelType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelType[] |
ModelType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<ModelType> |
ModelType.fromName(java.lang.String name)
Returns a
ModelType for the given name, or Optional.empty() if no
such model type exists. |
| Modifier and Type | Method and Description |
|---|---|
Encoding |
EncodingRegistry.getEncodingForModel(ModelType modelType)
Returns the encoding that is used for the given model type.
|
| Modifier and Type | Method and Description |
|---|---|
static ModelType |
TikTokenUtils.getModelTypeByName(java.lang.String name)
获取modelType
|
Copyright © 2023. All Rights Reserved.