Package org.springframework.ai.minimax
Class MiniMaxChatOptions.Builder
java.lang.Object
org.springframework.ai.minimax.MiniMaxChatOptions.Builder
- Enclosing class:
- MiniMaxChatOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
frequencyPenalty
(Double frequencyPenalty) functionCallbacks
(List<FunctionCallback> functionCallbacks) maskSensitiveInfo
(Boolean maskSensitiveInfo) presencePenalty
(Double presencePenalty) proxyToolCalls
(Boolean proxyToolCalls) responseFormat
(MiniMaxApi.ChatCompletionRequest.ResponseFormat responseFormat) temperature
(Double temperature) toolChoice
(String toolChoice) toolContext
(Map<String, Object> toolContext) tools
(List<MiniMaxApi.FunctionTool> tools) withFrequencyPenalty
(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.withFunction
(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead.withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead.withFunctions
(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead.withMaskSensitiveInfo
(Boolean maskSensitiveInfo) Deprecated, for removal: This API element is subject to removal in a future version.usemaskSensitiveInfo(Boolean)
instead.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.Deprecated, for removal: This API element is subject to removal in a future version.useN(Integer)
instead.withPresencePenalty
(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead.withProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead.withResponseFormat
(MiniMaxApi.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.useseed(Integer)
instead.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.withToolChoice
(String toolChoice) Deprecated, for removal: This API element is subject to removal in a future version.usetoolChoice(String)
instead.withToolContext
(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead.withTools
(List<MiniMaxApi.FunctionTool> tools) Deprecated, for removal: This API element is subject to removal in a future version.usetools(List)
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
-
N
-
presencePenalty
-
responseFormat
public MiniMaxChatOptions.Builder responseFormat(MiniMaxApi.ChatCompletionRequest.ResponseFormat responseFormat) -
seed
-
stop
-
temperature
-
topP
-
maskSensitiveInfo
-
tools
-
toolChoice
-
functionCallbacks
-
functions
-
function
-
proxyToolCalls
-
toolContext
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.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 MiniMaxChatOptions.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 MiniMaxChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withN
Deprecated, for removal: This API element is subject to removal in a future version.useN(Integer)
instead. -
withPresencePenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.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 MiniMaxChatOptions.Builder withResponseFormat(MiniMaxApi.ChatCompletionRequest.ResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version. -
withSeed
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withSeed(Integer seed) Deprecated, for removal: This API element is subject to removal in a future version.useseed(Integer)
instead. -
withStop
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.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 MiniMaxChatOptions.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 MiniMaxChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withMaskSensitiveInfo
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withMaskSensitiveInfo(Boolean maskSensitiveInfo) Deprecated, for removal: This API element is subject to removal in a future version.usemaskSensitiveInfo(Boolean)
instead. -
withTools
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withTools(List<MiniMaxApi.FunctionTool> tools) Deprecated, for removal: This API element is subject to removal in a future version.usetools(List)
instead. -
withToolChoice
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withToolChoice(String toolChoice) Deprecated, for removal: This API element is subject to removal in a future version.usetoolChoice(String)
instead. -
withFunctionCallbacks
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead. -
withFunctions
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withFunctions(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead. -
withFunction
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withFunction(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead. -
withProxyToolCalls
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withProxyToolCalls(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead. -
withToolContext
@Deprecated(forRemoval=true, since="1.0.0-M5") public MiniMaxChatOptions.Builder withToolContext(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead. -
build
-
frequencyPenalty(Double)
instead.