Package org.springframework.ai.openai
Class OpenAiEmbeddingOptions.Builder
java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions.AbstractBuilder<OpenAiEmbeddingOptions,OpenAiEmbeddingOptions.Builder>
org.springframework.ai.openai.OpenAiEmbeddingOptions.Builder
- Enclosing class:
- OpenAiEmbeddingOptions
public static final class OpenAiEmbeddingOptions.Builder
extends AbstractOpenAiOptions.AbstractBuilder<OpenAiEmbeddingOptions,OpenAiEmbeddingOptions.Builder>
-
Field Summary
Fields inherited from class org.springframework.ai.openai.AbstractOpenAiOptions.AbstractBuilder
apiKey, baseUrl, credential, customHeaders, isGitHubModels, isMicrosoftFoundry, maxRetries, microsoftDeploymentName, microsoftFoundryServiceVersion, model, organizationId, proxy, timeout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()dimensions(@Nullable Integer dimensions) encodingFormat(@Nullable OpenAiEmbeddingOptions.EncodingFormat encodingFormat) from(com.openai.models.embeddings.EmbeddingCreateParams openAiCreateParams) from(OpenAiEmbeddingOptions fromOptions) merge(@Nullable EmbeddingOptions from) Methods inherited from class org.springframework.ai.openai.AbstractOpenAiOptions.AbstractBuilder
apiKey, apiKey, azure, azureOpenAIServiceVersion, baseUrl, credential, customHeaders, deploymentName, gitHubModels, maxRetries, microsoftFoundry, microsoftFoundryServiceVersion, model, organizationId, proxy, self, timeout
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
-
merge
-
from
public OpenAiEmbeddingOptions.Builder from(com.openai.models.embeddings.EmbeddingCreateParams openAiCreateParams) -
user
-
encodingFormat
public OpenAiEmbeddingOptions.Builder encodingFormat(@Nullable OpenAiEmbeddingOptions.EncodingFormat encodingFormat) -
dimensions
-
build
- Specified by:
buildin classAbstractOpenAiOptions.AbstractBuilder<OpenAiEmbeddingOptions,OpenAiEmbeddingOptions.Builder>
-