Enum Class OpenAIModel
- All Implemented Interfaces:
Serializable
,Comparable<OpenAIModel>
,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()
static OpenAIModel
Returns the enum constant of this class with the specified name.static OpenAIModel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GPT_4o
-
GPT_4o_MINI
-
GPT_4
-
GPT_4_TURBO
-
GPT_4_TURBO_PREVIEW
-
GPT_4_1106_PREVIEW
-
GPT_4_VISION_PREVIEW
-
GPT_4_32K
-
GPT_3_5_TURBO
-
GPT_3_5_TURBO_1106
-
DALL_E_3
-
DALL_E_2
-
TTS_1
-
TTS_1_HD
-
WHISPER_1
-
TEXT_EMBEDDING_3_LARGE
-
TEXT_EMBEDDING_3_SMALL
-
TEXT_EMBEDDING_ADA_002
-
TEXT_MODERATION_LATEST
-
TEXT_MODERATION_STABLE
-
-
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
-
getId
-