| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<ModelType> |
fromName(java.lang.String name)
Returns a
ModelType for the given name, or Optional.empty() if no
such model type exists. |
EncodingType |
getEncodingType()
Returns the encoding type that is used by this model type.
|
int |
getMaxContextLength()
Returns the maximum context length that is supported by this model type.
|
java.lang.String |
getName()
Returns the name of the model type as used by the OpenAI API.
|
static ModelType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelType GPT_4
public static final ModelType GPT_4_32K
public static final ModelType GPT_3_5_TURBO
public static final ModelType TEXT_DAVINCI_003
public static final ModelType TEXT_DAVINCI_002
public static final ModelType TEXT_DAVINCI_001
public static final ModelType TEXT_CURIE_001
public static final ModelType TEXT_BABBAGE_001
public static final ModelType TEXT_ADA_001
public static final ModelType DAVINCI
public static final ModelType CURIE
public static final ModelType BABBAGE
public static final ModelType ADA
public static final ModelType CODE_DAVINCI_002
public static final ModelType CODE_DAVINCI_001
public static final ModelType CODE_CUSHMAN_002
public static final ModelType CODE_CUSHMAN_001
public static final ModelType DAVINCI_CODEX
public static final ModelType CUSHMAN_CODEX
public static final ModelType TEXT_DAVINCI_EDIT_001
public static final ModelType CODE_DAVINCI_EDIT_001
public static final ModelType TEXT_EMBEDDING_ADA_002
public static final ModelType TEXT_SIMILARITY_DAVINCI_001
public static final ModelType TEXT_SIMILARITY_CURIE_001
public static final ModelType TEXT_SIMILARITY_BABBAGE_001
public static final ModelType TEXT_SIMILARITY_ADA_001
public static final ModelType TEXT_SEARCH_DAVINCI_DOC_001
public static final ModelType TEXT_SEARCH_CURIE_DOC_001
public static final ModelType TEXT_SEARCH_BABBAGE_DOC_001
public static final ModelType TEXT_SEARCH_ADA_DOC_001
public static final ModelType CODE_SEARCH_BABBAGE_CODE_001
public static final ModelType CODE_SEARCH_ADA_CODE_001
public static ModelType[] values()
for (ModelType c : ModelType.values()) System.out.println(c);
public static ModelType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public EncodingType getEncodingType()
public int getMaxContextLength()