Package com.azure.ai.inference.models
Class ModelType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ModelType>
com.azure.ai.inference.models.ModelType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
The type of AI model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelTypeA text-to-audio generative model.static final ModelTypeA model capable of taking chat-formatted messages and generate responses.static final ModelTypeA model capable of generating embeddings from a text.static final ModelTypeA model capable of generating embeddings from an image.static final ModelTypeA model capable of generating images from an image and text description.static final ModelTypeA text generation model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelTypefromString(String name) Creates or finds a ModelType from its string representation.static Collection<ModelType> values()Gets known ModelType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
EMBEDDINGS
A model capable of generating embeddings from a text. -
IMAGE_GENERATION
A model capable of generating images from an image and text description. -
TEXT_GENERATION
A text generation model. -
IMAGE_EMBEDDINGS
A model capable of generating embeddings from an image. -
AUDIO_GENERATION
A text-to-audio generative model. -
CHAT_COMPLETION
A model capable of taking chat-formatted messages and generate responses.
-
-
Constructor Details
-
ModelType
Deprecated.Use thefromString(String)factory method.Creates a new instance of ModelType value.
-
-
Method Details
-
fromString
Creates or finds a ModelType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ModelType.
-
values
Gets known ModelType values.- Returns:
- known ModelType values.
-
fromString(String)factory method.