Class ConversationParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
com.alibaba.dashscope.legacy_2x.aigc.generation.GenerationParamBase
com.alibaba.dashscope.legacy_2x.aigc.conversation.ConversationParam
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConversationParam.ConversationParamBuilder<C extends ConversationParam,B extends ConversationParam.ConversationParamBuilder<C, B>> Deprecated.static classDeprecated.Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.aigc.generation.GenerationParamBase
GenerationParamBase.GenerationParamBaseBuilder<C extends GenerationParamBase,B extends GenerationParamBase.GenerationParamBaseBuilder<C, B>> Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends HalfDuplexServiceParam,B extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C, B>> Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends HalfDuplexParamBase,B extends HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C, B>> -
Field Summary
Fields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationParam.ConversationParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.Deprecated.Deprecated.Used to control the streaming output mode.com.google.gson.JsonObjectgetInput()Deprecated.Get the request input data.Deprecated.Deprecated.Deprecated.Deprecated.The service parameters.Deprecated.Deprecated.The output format, text or message, default message.getSeed()Deprecated.Deprecated.Deprecated.Deprecated.Used to control the degree of randomness and diversity.getTopK()Deprecated.getTopP()Deprecated.inthashCode()Deprecated.voidsetEnableSearch(Boolean enableSearch) Deprecated.voidsetIncrementalOutput(Boolean incrementalOutput) Deprecated.Used to control the streaming output mode.voidsetMaxLength(Integer maxLength) Deprecated.voidsetMaxTokens(Integer maxTokens) Deprecated.voidsetMessages(List<Message> messages) Deprecated.voidsetRepetitionPenalty(Float repetitionPenalty) Deprecated.voidsetResultFormat(String resultFormat) Deprecated.The output format, text or message, default message.voidDeprecated.voidsetStopStrings(List<String> stopStrings) Deprecated.voidsetStopTokens(List<List<Integer>> stopTokens) Deprecated.voidsetTemperature(Float temperature) Deprecated.Used to control the degree of randomness and diversity.voidDeprecated.voidDeprecated.toString()Deprecated.voidvalidate()Deprecated.Validate the input and parameters.Methods inherited from class com.alibaba.dashscope.legacy_2x.aigc.generation.GenerationParamBase
getBinaryData, getHistory, getHttpBody, getPrompt, setHistory, setPromptMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
getHeaders, getModel, getResources, putHeaderMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
getApiKey, getEnableEncrypt, getWorkspace, isSecurityCheck, setApiKey, setEnableEncrypt, setHeaders, setParameters, setSecurityCheck, setWorkspace, shouldSerializeExplicitNulls
-
Constructor Details
-
ConversationParam
Deprecated.
-
-
Method Details
-
getInput
public com.google.gson.JsonObject getInput()Deprecated.Description copied from class:HalfDuplexParamBaseGet the request input data.- Overrides:
getInputin classGenerationParamBase- Returns:
- The input data object.
-
getParameters
Deprecated.Description copied from class:HalfDuplexParamBaseThe service parameters.- Overrides:
getParametersin classHalfDuplexServiceParam- Returns:
- The parameters
-
validate
Deprecated.Description copied from class:HalfDuplexParamBaseValidate the input and parameters.- Overrides:
validatein classGenerationParamBase- Throws:
InputRequiredException- Missing input fields.
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classGenerationParamBase
-
canEqual
Deprecated.- Overrides:
canEqualin classGenerationParamBase
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classGenerationParamBase
-
getMessages
Deprecated. -
getMaxLength
Deprecated. -
getTopP
Deprecated. -
getTopK
Deprecated. -
getEnableSearch
Deprecated. -
getSeed
Deprecated. -
getResultFormat
Deprecated.The output format, text or message, default message. -
getTemperature
Deprecated.Used to control the degree of randomness and diversity. Specifically, the temperature value controls the degree to which the probability distribution of each candidate word is smoothed when generating text. A higher temperature value will reduce the peak value of the probability distribution, allowing more low-probability words to be selected, and the generated results will be more diverse; while a lower temperature value will enhance the peak value of the probability distribution, making it easier for high-probability words to be selected, the generated results are more deterministic, range(0, 2) for [qwen-turbo,qwen-plus]. -
getIncrementalOutput
Deprecated.Used to control the streaming output mode. If true, the subsequent output will include the previously input content by default. Otherwise, the subsequent output will not include the previously output content. Default: false eg(false):I I like I like apple true: I like apple
-
getMaxTokens
Deprecated. -
getRepetitionPenalty
Deprecated. -
getStopStrings
Deprecated. -
getStopTokens
Deprecated. -
setMessages
Deprecated. -
setMaxLength
Deprecated. -
setTopP
Deprecated. -
setTopK
Deprecated. -
setEnableSearch
Deprecated. -
setSeed
Deprecated. -
setResultFormat
Deprecated.The output format, text or message, default message. -
setTemperature
Deprecated.Used to control the degree of randomness and diversity. Specifically, the temperature value controls the degree to which the probability distribution of each candidate word is smoothed when generating text. A higher temperature value will reduce the peak value of the probability distribution, allowing more low-probability words to be selected, and the generated results will be more diverse; while a lower temperature value will enhance the peak value of the probability distribution, making it easier for high-probability words to be selected, the generated results are more deterministic, range(0, 2) for [qwen-turbo,qwen-plus]. -
setIncrementalOutput
Deprecated.Used to control the streaming output mode. If true, the subsequent output will include the previously input content by default. Otherwise, the subsequent output will not include the previously output content. Default: false eg(false):I I like I like apple true: I like apple
-
setMaxTokens
Deprecated. -
setRepetitionPenalty
Deprecated. -
setStopStrings
Deprecated. -
setStopTokens
Deprecated. -
toString
Deprecated.- Overrides:
toStringin classGenerationParamBase
-