Package org.springframework.ai.qianfan
Class QianFanChatOptions.Builder
java.lang.Object
org.springframework.ai.qianfan.QianFanChatOptions.Builder
- Enclosing class:
- QianFanChatOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
frequencyPenalty
(Double frequencyPenalty) presencePenalty
(Double presencePenalty) responseFormat
(QianFanApi.ChatCompletionRequest.ResponseFormat responseFormat) temperature
(Double temperature) withFrequencyPenalty
(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.withMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.withPresencePenalty
(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead.withResponseFormat
(QianFanApi.ChatCompletionRequest.ResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.usestop(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.usetopP(Double)
instead.
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
model
-
frequencyPenalty
-
maxTokens
-
presencePenalty
-
responseFormat
public QianFanChatOptions.Builder responseFormat(QianFanApi.ChatCompletionRequest.ResponseFormat responseFormat) -
stop
-
temperature
-
topP
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public QianFanChatOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withFrequencyPenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public QianFanChatOptions.Builder withFrequencyPenalty(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenalty(Double)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public QianFanChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withPresencePenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public QianFanChatOptions.Builder withPresencePenalty(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead. -
withResponseFormat
@Deprecated(forRemoval=true, since="1.0.0-M5") public QianFanChatOptions.Builder withResponseFormat(QianFanApi.ChatCompletionRequest.ResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version. -
withStop
@Deprecated(forRemoval=true, since="1.0.0-M5") public QianFanChatOptions.Builder withStop(List<String> stop) Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public QianFanChatOptions.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 QianFanChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
build
-
frequencyPenalty(Double)
instead.