Package org.springframework.ai.openai
Class OpenAiEmbeddingOptions.Builder
java.lang.Object
org.springframework.ai.openai.OpenAiEmbeddingOptions.Builder
- Enclosing class:
- OpenAiEmbeddingOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
dimensions
(Integer dimensions) encodingFormat
(String encodingFormat) withDimensions
(Integer dimensions) Deprecated, for removal: This API element is subject to removal in a future version.withEncodingFormat
(String encodingFormat) Deprecated, for removal: This API element is subject to removal in a future version.useencodingFormat(String)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.Deprecated, for removal: This API element is subject to removal in a future version.useuser(String)
instead.
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
-
encodingFormat
-
dimensions
-
user
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiEmbeddingOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withEncodingFormat
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiEmbeddingOptions.Builder withEncodingFormat(String encodingFormat) Deprecated, for removal: This API element is subject to removal in a future version.useencodingFormat(String)
instead. -
withDimensions
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiEmbeddingOptions.Builder withDimensions(Integer dimensions) Deprecated, for removal: This API element is subject to removal in a future version.usedimensions(Integer)
instead. -
withUser
@Deprecated(forRemoval=true, since="1.0.0-M5") public OpenAiEmbeddingOptions.Builder withUser(String user) Deprecated, for removal: This API element is subject to removal in a future version.useuser(String)
instead. -
build
-
dimensions(Integer)
instead.