Class EmbeddingsCreateRequest
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.EmbeddingsCreateRequest
EmbeddingsCreateRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondimensions(Integer dimensions) Set the dimensions of thisEmbeddingsCreateRequestinstance and return the same instance.encodingFormat(String encodingFormat) Set the encodingFormat of thisEmbeddingsCreateRequestinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theEmbeddingsCreateRequest.The number of dimensions the resulting output embeddings should have.The format to return the embeddings in.getInput()Get inputinput type of embedding search to usegetUser()A unique identifier representing your end-user, which can help monitoring and detecting abuse.inthashCode()Set the input of thisEmbeddingsCreateRequestinstance and return the same instance.Set the inputType of thisEmbeddingsCreateRequestinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisEmbeddingsCreateRequestinstance.voidsetDimensions(Integer dimensions) Set the dimensions of thisEmbeddingsCreateRequestinstance.voidsetEncodingFormat(String encodingFormat) Set the encodingFormat of thisEmbeddingsCreateRequestinstance.voidSet the input of thisEmbeddingsCreateRequestinstance.voidsetInputType(String inputType) Set the inputType of thisEmbeddingsCreateRequestinstance.voidSet the user of thisEmbeddingsCreateRequestinstance.toMap()Get the value of all properties of thisEmbeddingsCreateRequestinstance including unrecognized properties.toString()Set the user of thisEmbeddingsCreateRequestinstance and return the same instance.
-
Constructor Details
-
EmbeddingsCreateRequest
public EmbeddingsCreateRequest()
-
-
Method Details
-
input
Set the input of thisEmbeddingsCreateRequestinstance and return the same instance.- Parameters:
input- The input of thisEmbeddingsCreateRequest- Returns:
- The same instance of this
EmbeddingsCreateRequestclass
-
getInput
Get input- Returns:
- input The input of this
EmbeddingsCreateRequestinstance.
-
setInput
Set the input of thisEmbeddingsCreateRequestinstance.- Parameters:
input- The input of thisEmbeddingsCreateRequest
-
user
Set the user of thisEmbeddingsCreateRequestinstance and return the same instance.- Parameters:
user- A unique identifier representing your end-user, which can help monitoring and detecting abuse.- Returns:
- The same instance of this
EmbeddingsCreateRequestclass
-
getUser
A unique identifier representing your end-user, which can help monitoring and detecting abuse.- Returns:
- user The user of this
EmbeddingsCreateRequestinstance.
-
setUser
Set the user of thisEmbeddingsCreateRequestinstance.- Parameters:
user- A unique identifier representing your end-user, which can help monitoring and detecting abuse.
-
inputType
Set the inputType of thisEmbeddingsCreateRequestinstance and return the same instance.- Parameters:
inputType- input type of embedding search to use- Returns:
- The same instance of this
EmbeddingsCreateRequestclass
-
getInputType
input type of embedding search to use- Returns:
- inputType The inputType of this
EmbeddingsCreateRequestinstance.
-
setInputType
Set the inputType of thisEmbeddingsCreateRequestinstance.- Parameters:
inputType- input type of embedding search to use
-
encodingFormat
Set the encodingFormat of thisEmbeddingsCreateRequestinstance and return the same instance.- Parameters:
encodingFormat- The format to return the embeddings in. Can be either `float` or `base64`. Defaults to `float`.- Returns:
- The same instance of this
EmbeddingsCreateRequestclass
-
getEncodingFormat
The format to return the embeddings in. Can be either `float` or `base64`. Defaults to `float`.- Returns:
- encodingFormat The encodingFormat of this
EmbeddingsCreateRequestinstance.
-
setEncodingFormat
Set the encodingFormat of thisEmbeddingsCreateRequestinstance.- Parameters:
encodingFormat- The format to return the embeddings in. Can be either `float` or `base64`. Defaults to `float`.
-
dimensions
Set the dimensions of thisEmbeddingsCreateRequestinstance and return the same instance.- Parameters:
dimensions- The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models.- Returns:
- The same instance of this
EmbeddingsCreateRequestclass
-
getDimensions
The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models.- Returns:
- dimensions The dimensions of this
EmbeddingsCreateRequestinstance.
-
setDimensions
Set the dimensions of thisEmbeddingsCreateRequestinstance.- Parameters:
dimensions- The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theEmbeddingsCreateRequest.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisEmbeddingsCreateRequestinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisEmbeddingsCreateRequestinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisEmbeddingsCreateRequestinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
toMap()instead.