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
      Embeddings.
    • IMAGE_GENERATION

      public static final ModelType IMAGE_GENERATION
      Image generation.
    • TEXT_GENERATION

      public static final ModelType TEXT_GENERATION
      Text generation.
    • IMAGE_EMBEDDINGS

      public static final ModelType IMAGE_EMBEDDINGS
      Image embeddings.
    • AUDIO_GENERATION

      public static final ModelType AUDIO_GENERATION
      Audio generation.
    • CHAT

      public static final ModelType CHAT
      Chat completions.
  • 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.