Enum Class OpenAIModel

java.lang.Object
java.lang.Enum<OpenAIModel>
io.github.stefanbratanov.jvm.openai.OpenAIModel
All Implemented Interfaces:
Serializable, Comparable<OpenAIModel>, Constable

public enum OpenAIModel extends Enum<OpenAIModel>
Represents the latest OpenAI models.

Note that this does not correspond to a static version and may change over time.

To see the compatibility of the models with different API endpoints, refer to Model endpoint compatibility.

See Also:
  • Enum Constant Details

    • GPT_4o

      public static final OpenAIModel GPT_4o
    • GPT_4o_MINI

      public static final OpenAIModel GPT_4o_MINI
    • GPT_4

      public static final OpenAIModel GPT_4
    • GPT_4_TURBO

      public static final OpenAIModel GPT_4_TURBO
    • GPT_4_TURBO_PREVIEW

      public static final OpenAIModel GPT_4_TURBO_PREVIEW
    • GPT_4_1106_PREVIEW

      public static final OpenAIModel GPT_4_1106_PREVIEW
    • GPT_4_VISION_PREVIEW

      public static final OpenAIModel GPT_4_VISION_PREVIEW
    • GPT_4_32K

      public static final OpenAIModel GPT_4_32K
    • GPT_3_5_TURBO

      public static final OpenAIModel GPT_3_5_TURBO
    • GPT_3_5_TURBO_1106

      public static final OpenAIModel GPT_3_5_TURBO_1106
    • DALL_E_3

      public static final OpenAIModel DALL_E_3
    • DALL_E_2

      public static final OpenAIModel DALL_E_2
    • TTS_1

      public static final OpenAIModel TTS_1
    • TTS_1_HD

      public static final OpenAIModel TTS_1_HD
    • WHISPER_1

      public static final OpenAIModel WHISPER_1
    • TEXT_EMBEDDING_3_LARGE

      public static final OpenAIModel TEXT_EMBEDDING_3_LARGE
    • TEXT_EMBEDDING_3_SMALL

      public static final OpenAIModel TEXT_EMBEDDING_3_SMALL
    • TEXT_EMBEDDING_ADA_002

      public static final OpenAIModel TEXT_EMBEDDING_ADA_002
    • TEXT_MODERATION_LATEST

      public static final OpenAIModel TEXT_MODERATION_LATEST
    • TEXT_MODERATION_STABLE

      public static final OpenAIModel TEXT_MODERATION_STABLE
  • Method Details

    • values

      public static OpenAIModel[] 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

      public static OpenAIModel valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public String getId()