Record Class OpenAiModel
java.lang.Object
java.lang.Record
com.sap.ai.sdk.foundationmodels.openai.OpenAiModel
- Record Components:
name- The name of the model.version- The version of the model (optional).
- All Implemented Interfaces:
AiModel
public record OpenAiModel(@Nonnull String name, @Nullable String version)
extends Record
implements AiModel
OpenAI models that are available in AI Core.
Please note that the template of models provided in this class might be outdated. To check the latest availability of OpenAI models in AI Core, please refer to SAP Availability of Generative AI Models .
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OpenAiModelDeprecated.This model is deprecated on AI Core.static final OpenAiModelDeprecated.This model is deprecated on AI Core with a planned retirement on 2025-02-13.static final OpenAiModelDeprecated.This model is deprecated on AI Core with a planned retirement on 2025-02-22.static final OpenAiModelDeprecated.This model is deprecated on AI Core with a planned retirement on 2025-02-13.static final OpenAiModelDeprecated.This model is deprecated on AI Core with a planned retirement on 2025-09-01.static final OpenAiModelDeprecated.This model is deprecated on AI Core.static final OpenAiModelAzure OpenAI GPT-4.1 modelstatic final OpenAiModelAzure OpenAI GPT-4.1-mini modelstatic final OpenAiModelAzure OpenAI GPT-4.1-nano modelstatic final OpenAiModelAzure OpenAI GPT-4o modelstatic final OpenAiModelDeprecated.This model is deprecated on AI Core.static final OpenAiModelAzure OpenAI GPT-5 modelstatic final OpenAiModelAzure OpenAI GPT-5-mini modelstatic final OpenAiModelAzure OpenAI GPT-5-nano modelstatic final OpenAiModelAzure OpenAI GPT-5.2 modelstatic final OpenAiModelAzure OpenAI GPT-5.3-codex modelstatic final OpenAiModelAzure OpenAI GPT-5.4 modelstatic final OpenAiModelAzure OpenAI GPT-5.4-nano modelstatic final OpenAiModelAzure OpenAI GPT-5-nano modelstatic final OpenAiModelDeprecated.This model is deprecated on AI Core.static final OpenAiModelAzure OpenAI GPT-o3 modelstatic final OpenAiModelDeprecated.This model is deprecated on AI Core.static final OpenAiModelAzure OpenAI GPT-o4 Mini modelstatic final OpenAiModelAzure OpenAI Text Embedding 3 Large modelstatic final OpenAiModelAzure OpenAI Text Embedding 3 Small modelstatic final OpenAiModelDeprecated.This model is deprecated on AI Core with a planned retirement on 2025-10-03. -
Constructor Summary
ConstructorsConstructorDescriptionOpenAiModel(String name, String version) Creates an instance of aOpenAiModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.withVersion(String version) Create a new instance of OpenAiModel with the provided version.
-
Field Details
-
DALL_E_3
Deprecated.This model is deprecated on AI Core.internal [Azure OpenAI dall-e-3 model] -
GPT_35_TURBO
Deprecated.This model is deprecated on AI Core with a planned retirement on 2025-02-13. The suggested replacement model isGPT_4O_MINI.Azure OpenAI GPT-3.5 Turbo model -
GPT_35_TURBO_1025
Deprecated.This model is deprecated on AI Core with a planned retirement on 2025-02-22. The suggested replacement model isGPT_4O_MINI.Azure OpenAI GPT-3.5 Turbo model -
GPT_35_TURBO_16K
Deprecated.This model is deprecated on AI Core with a planned retirement on 2025-02-13. The suggested replacement model isGPT_4O_MINI.Azure OpenAI GPT-3.5 Turbo model -
GPT_4
Deprecated.Azure OpenAI GPT-4 model -
GPT_4_32K
Deprecated.This model is deprecated on AI Core.Azure OpenAI GPT-4 model -
GPT_4O
Azure OpenAI GPT-4o model -
GPT_4O_MINI
Deprecated.This model is deprecated on AI Core. The suggested replacement model isGPT_5_MINI.Azure OpenAI GPT-4o Mini model -
O3_MINI
Deprecated.This model is deprecated on AI Core.Azure OpenAI GPT-o3 Mini model -
O1
Deprecated.This model is deprecated on AI Core.Azure OpenAI GPT-o1 model -
TEXT_EMBEDDING_3_LARGE
Azure OpenAI Text Embedding 3 Large model -
TEXT_EMBEDDING_3_SMALL
Azure OpenAI Text Embedding 3 Small model -
O4_MINI
Azure OpenAI GPT-o4 Mini model -
O3
Azure OpenAI GPT-o3 model -
GPT_41
Azure OpenAI GPT-4.1 model -
GPT_41_NANO
Azure OpenAI GPT-4.1-nano model -
GPT_41_MINI
Azure OpenAI GPT-4.1-mini model -
GPT_5
Azure OpenAI GPT-5 model -
GPT_5_MINI
Azure OpenAI GPT-5-mini model -
GPT_5_NANO
Azure OpenAI GPT-5-nano model -
GPT_REALTIME
Azure OpenAI GPT-5-nano model -
GPT_52
Azure OpenAI GPT-5.2 model -
GPT_53_CODEX
Azure OpenAI GPT-5.3-codex model -
GPT_54
Azure OpenAI GPT-5.4 model -
GPT_54_NANO
Azure OpenAI GPT-5.4-nano model -
TEXT_EMBEDDING_ADA_002
Deprecated.This model is deprecated on AI Core with a planned retirement on 2025-10-03. The suggested replacement models areTEXT_EMBEDDING_3_SMALLandTEXT_EMBEDDING_3_LARGE.Azure OpenAI Text Embedding ADA 002 model
-
-
Constructor Details
-
Method Details
-
withVersion
Create a new instance of OpenAiModel with the provided version.- Parameters:
version- The version of the model.- Returns:
- The new instance of OpenAiModel.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component. -
version
Returns the value of theversionrecord component.
-