Package org.springframework.ai.openai
Class OpenAiEmbeddingOptions
java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions
org.springframework.ai.openai.OpenAiEmbeddingOptions
- All Implemented Interfaces:
EmbeddingOptions,ModelOptions
Configuration information for the Embedding Model implementation using the OpenAI Java
SDK.
- Author:
- Julien Dubois, Christian Tzolov, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()@Nullable Integer@Nullable StringgetUser()voidsetDimensions(@Nullable Integer dimensions) voidcom.openai.models.embeddings.EmbeddingCreateParamstoOpenAiCreateParams(List<String> instructions) toString()Methods inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
getApiKey, getBaseUrl, getCredential, getCustomHeaders, getDeploymentName, getMaxRetries, getMicrosoftDeploymentName, getMicrosoftFoundryServiceVersion, getModel, getOrganizationId, getProxy, getTimeout, isGitHubModels, isMicrosoftFoundry, setApiKey, setBaseUrl, setCredential, setCustomHeaders, setDeploymentName, setGitHubModels, setMaxRetries, setMicrosoftDeploymentName, setMicrosoftFoundry, setMicrosoftFoundryServiceVersion, setModel, setOrganizationId, setProxy, setTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.ai.embedding.EmbeddingOptions
getModel
-
Field Details
-
DEFAULT_EMBEDDING_MODEL
-
-
Constructor Details
-
OpenAiEmbeddingOptions
public OpenAiEmbeddingOptions()
-
-
Method Details
-
builder
-
getUser
-
setUser
-
getDimensions
- Specified by:
getDimensionsin interfaceEmbeddingOptions
-
setDimensions
-
toString
-
toOpenAiCreateParams
-