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 OpenAiModelAzure OpenAI GPT-4.1 model.static final OpenAiModelAzure OpenAI GPT-4.1-mini model.static final OpenAiModelAzure OpenAI GPT-4.1-nano model.static final OpenAiModelAzure OpenAI GPT-4o model.static final OpenAiModelAzure OpenAI GPT-5 model.static final OpenAiModelAzure OpenAI GPT-5-mini model.static final OpenAiModelAzure OpenAI GPT-5-nano model.static final OpenAiModelAzure OpenAI GPT-5.1 model.static final OpenAiModelAzure OpenAI GPT-5.2 model.static final OpenAiModelAzure OpenAI GPT-5.3-codex model.static final OpenAiModelAzure OpenAI GPT-5.4 model.static final OpenAiModelAzure OpenAI GPT-5.4-nano model.static final OpenAiModelAzure OpenAI GPT-5.5 model.static final OpenAiModelAzure OpenAI GPT-5.6-luna model.static final OpenAiModelAzure OpenAI GPT-5.6-sol model.static final OpenAiModelAzure OpenAI GPT-5.6-terra model.static final OpenAiModelAzure OpenAI GPT-realtime model.static final OpenAiModelAzure OpenAI GPT-o3 model.static final OpenAiModelAzure OpenAI GPT-o4 Mini model.static final OpenAiModelAzure OpenAI Text Embedding 3 Large model.static final OpenAiModelAzure OpenAI Text Embedding 3 Small model. -
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
-
GPT_4O
Azure OpenAI GPT-4o 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_51
Azure OpenAI GPT-5.1 model. -
GPT_REALTIME
Azure OpenAI GPT-realtime 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. -
GPT_55
Azure OpenAI GPT-5.5 model. -
GPT_56_LUNA
Azure OpenAI GPT-5.6-luna model. -
GPT_56_SOL
Azure OpenAI GPT-5.6-sol model. -
GPT_56_TERRA
Azure OpenAI GPT-5.6-terra 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.
-