Package org.springframework.ai.openaisdk
Class OpenAiSdkEmbeddingOptions
java.lang.Object
org.springframework.ai.openaisdk.AbstractOpenAiSdkOptions
org.springframework.ai.openaisdk.OpenAiSdkEmbeddingOptions
- All Implemented Interfaces:
EmbeddingOptions,ModelOptions
Configuration information for the Embedding Model implementation using the OpenAI Java
SDK.
- Author:
- Julien Dubois
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getUser()voidsetDimensions(Integer dimensions) voidcom.openai.models.embeddings.EmbeddingCreateParamstoOpenAiCreateParams(List<String> instructions) toString()Methods inherited from class org.springframework.ai.openaisdk.AbstractOpenAiSdkOptions
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
-
OpenAiSdkEmbeddingOptions
public OpenAiSdkEmbeddingOptions()
-
-
Method Details
-
builder
-
getUser
-
setUser
-
getDimensions
- Specified by:
getDimensionsin interfaceEmbeddingOptions
-
setDimensions
-
toString
-
toOpenAiCreateParams
-