Class EmbeddingsRequest.Builder
java.lang.Object
io.github.stefanbratanov.jvm.openai.EmbeddingsRequest.Builder
- Enclosing class:
- EmbeddingsRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
dimensions
(int dimensions) encodingFormat
(String encodingFormat) input
(int[] input) model
(OpenAIModel model)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
input
- Parameters:
input
- The string(s) that will be turned into an embedding.
-
input
- Parameters:
input
- The array of integers that will be turned into an embedding.
-
input
- Parameters:
input
- The array of arrays containing integers that will be turned into an embedding.
-
model
- Parameters:
model
- ID of the model to use
-
model
- Parameters:
model
-OpenAIModel
to use
-
encodingFormat
- Parameters:
encodingFormat
- The format to return the embeddings in. Can be either float or base64.
-
dimensions
- Parameters:
dimensions
- The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.
-
user
- Parameters:
user
- A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
-
build
-