Package org.springframework.ai.watsonx
Class WatsonxAiChatOptions.Builder
java.lang.Object
org.springframework.ai.watsonx.WatsonxAiChatOptions.Builder
- Enclosing class:
- WatsonxAiChatOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties
(Map<String, Object> properties) additionalProperty
(String key, Object value) build()
decodingMethod
(String decodingMethod) maxNewTokens
(Integer maxNewTokens) minNewTokens
(Integer minNewTokens) randomSeed
(Integer randomSeed) repetitionPenalty
(Double repetitionPenalty) stopSequences
(List<String> stopSequences) temperature
(Double temperature) withAdditionalProperties
(Map<String, Object> properties) Deprecated, for removal: This API element is subject to removal in a future version.withAdditionalProperty
(String key, Object value) Deprecated, for removal: This API element is subject to removal in a future version.useadditionalProperty(String, Object)
instead.withDecodingMethod
(String decodingMethod) Deprecated, for removal: This API element is subject to removal in a future version.usedecodingMethod(String)
instead.withMaxNewTokens
(Integer maxNewTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxNewTokens(Integer)
instead.withMinNewTokens
(Integer minNewTokens) Deprecated, for removal: This API element is subject to removal in a future version.useminNewTokens(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.withRandomSeed
(Integer randomSeed) Deprecated, for removal: This API element is subject to removal in a future version.userandomSeed(Integer)
instead.withRepetitionPenalty
(Double repetitionPenalty) Deprecated, for removal: This API element is subject to removal in a future version.userepetitionPenalty(Double)
instead.withStopSequences
(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
temperature
-
topP
-
topK
-
decodingMethod
-
maxNewTokens
-
minNewTokens
-
stopSequences
-
repetitionPenalty
-
randomSeed
-
model
-
additionalProperty
-
additionalProperties
-
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withTopK
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withTopK(Integer topK) Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead. -
withDecodingMethod
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withDecodingMethod(String decodingMethod) Deprecated, for removal: This API element is subject to removal in a future version.usedecodingMethod(String)
instead. -
withMaxNewTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withMaxNewTokens(Integer maxNewTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxNewTokens(Integer)
instead. -
withMinNewTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withMinNewTokens(Integer minNewTokens) Deprecated, for removal: This API element is subject to removal in a future version.useminNewTokens(Integer)
instead. -
withStopSequences
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withStopSequences(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead. -
withRepetitionPenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withRepetitionPenalty(Double repetitionPenalty) Deprecated, for removal: This API element is subject to removal in a future version.userepetitionPenalty(Double)
instead. -
withRandomSeed
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withRandomSeed(Integer randomSeed) Deprecated, for removal: This API element is subject to removal in a future version.userandomSeed(Integer)
instead. -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withAdditionalProperty
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withAdditionalProperty(String key, Object value) Deprecated, for removal: This API element is subject to removal in a future version.useadditionalProperty(String, Object)
instead. -
withAdditionalProperties
@Deprecated(forRemoval=true, since="1.0.0-M5") public WatsonxAiChatOptions.Builder withAdditionalProperties(Map<String, Object> properties) Deprecated, for removal: This API element is subject to removal in a future version.useadditionalProperties(Map)
instead. -
build
-
additionalProperties(Map)
instead.