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>

public final class ModelType extends com.azure.core.util.ExpandableStringEnum<ModelType>
The type of AI model.
  • Field Details

    • EMBEDDINGS

      public static final ModelType EMBEDDINGS
      A model capable of generating embeddings from a text.
    • IMAGE_GENERATION

      public static final ModelType IMAGE_GENERATION
      A model capable of generating images from an image and text description.
    • TEXT_GENERATION

      public static final ModelType TEXT_GENERATION
      A text generation model.
    • IMAGE_EMBEDDINGS

      public static final ModelType IMAGE_EMBEDDINGS
      A model capable of generating embeddings from an image.
    • AUDIO_GENERATION

      public static final ModelType AUDIO_GENERATION
      A text-to-audio generative model.
    • CHAT_COMPLETION

      public static final ModelType CHAT_COMPLETION
      A model capable of taking chat-formatted messages and generate responses.
  • Constructor Details

  • Method Details

    • fromString

      public static ModelType fromString(String name)
      Creates or finds a ModelType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ModelType.
    • values

      public static Collection<ModelType> values()
      Gets known ModelType values.
      Returns:
      known ModelType values.