Enum Class ModelType
- All Implemented Interfaces:
Serializable, Comparable<ModelType>, Constable
Represents the type/category of a model.
- Since:
- 1.10.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAudio generation models (text-to-speech).Audio transcription models (speech-to-text).Chat/conversational models (e.g., GPT-5, Claude, etc.).Text embedding models for vector representations.Image generation models (e.g., DALL-E, Stable Diffusion).Content moderation models.Other or unclassified model types.Document scoring or re-ranking models. -
Method Summary
-
Enum Constant Details
-
CHAT
Chat/conversational models (e.g., GPT-5, Claude, etc.). Can be used withChatModelorStreamingChatModel. -
EMBEDDING
Text embedding models for vector representations. Can be used withEmbeddingModel. -
IMAGE_GENERATION
Image generation models (e.g., DALL-E, Stable Diffusion). Can be used withImageModel. -
AUDIO_TRANSCRIPTION
Audio transcription models (speech-to-text). Can be used withAudioTranscriptionModel. -
AUDIO_GENERATION
Audio generation models (text-to-speech). -
MODERATION
Content moderation models. Can be used withModerationModel. -
SCORING
Document scoring or re-ranking models. Can be used withScoringModel. -
OTHER
Other or unclassified model types.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-