Class GenerationParam
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.generation.GenerationParam
- Direct Known Subclasses:
QwenParam
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGenerationParam.GenerationParamBuilder<C extends GenerationParam,B extends GenerationParam.GenerationParamBuilder<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
FieldsModifier and TypeFieldDescriptionprotected BooleanDeprecated.enable parallel tool callsprotected ObjectDeprecated.Specify tool choiceFields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerationParam.GenerationParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.Deprecated.Deprecated.Whether to enable reasoning.Deprecated.Used to control the streaming output mode.com.google.gson.JsonObjectgetInput()Deprecated.Get the request input data.Deprecated.Whether to return log probabilities for each output token.Deprecated.Deprecated.Maximum tokens to generate.Deprecated.getN()Deprecated.Number of responses to generate.Deprecated.enable parallel tool callsDeprecated.The service parameters.Deprecated.repetition penaltyDeprecated.Format of the response content.Deprecated.The output format, text or message, default message.Deprecated.Web search strategy.getSeed()Deprecated.Deprecated.stopString and token are mutually exclusive.Deprecated.Deprecated.Used to control the degree of randomness and diversity.Deprecated.Maximum number of tokens generated during reasoning.Deprecated.Specify tool choicegetTools()Deprecated.Specify which tools the model can use.getTopK()Deprecated.Deprecated.Number of most likely tokens to return at each token position.getTopP()Deprecated.Deprecated.Translation options.inthashCode()Deprecated.voidsetEnableSearch(Boolean enableSearch) Deprecated.voidsetEnableThinking(Boolean enableThinking) Deprecated.Whether to enable reasoning.voidsetIncrementalOutput(Boolean incrementalOutput) Deprecated.Used to control the streaming output mode.voidsetLogprobs(Boolean logprobs) Deprecated.Whether to return log probabilities for each output token.voidsetMaxLength(Integer maxLength) Deprecated.voidsetMaxTokens(Integer maxTokens) Deprecated.Maximum tokens to generate.voidsetMessages(List<Message> messages) Deprecated.voidDeprecated.Number of responses to generate.voidsetParallelToolCalls(Boolean parallelToolCalls) Deprecated.enable parallel tool callsvoidsetRepetitionPenalty(Float repetitionPenalty) Deprecated.repetition penaltyvoidsetResponseFormat(ResponseFormat responseFormat) Deprecated.Format of the response content.voidsetResultFormat(String resultFormat) Deprecated.The output format, text or message, default message.voidsetSearchOptions(SearchOptions searchOptions) Deprecated.Web search strategy.voidDeprecated.voidsetStopStrings(List<String> stopStrings) Deprecated.stopString and token are mutually exclusive.voidsetStopTokens(List<List<Integer>> stopTokens) Deprecated.voidsetTemperature(Float temperature) Deprecated.Used to control the degree of randomness and diversity.voidsetThinkingBudget(Integer thinkingBudget) Deprecated.Maximum number of tokens generated during reasoning.voidsetToolChoice(Object toolChoice) Deprecated.Specify tool choicevoidDeprecated.Specify which tools the model can use.voidDeprecated.voidsetTopLogprobs(Integer topLogprobs) Deprecated.Number of most likely tokens to return at each token position.voidDeprecated.voidsetTranslationOptions(TranslationOptions translationOptions) Deprecated.Translation options.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
-
Field Details
-
toolChoice
Deprecated.Specify tool choice -
parallelToolCalls
Deprecated.enable parallel tool calls
-
-
Constructor Details
-
GenerationParam
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). -
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 when true: I like apple
-
getMaxTokens
Deprecated.Maximum tokens to generate. -
getRepetitionPenalty
Deprecated.repetition penalty -
getStopStrings
Deprecated.stopString and token are mutually exclusive. -
getStopTokens
Deprecated. -
getTools
Deprecated.Specify which tools the model can use. -
getToolChoice
Deprecated.Specify tool choice -
getParallelToolCalls
Deprecated.enable parallel tool calls -
getSearchOptions
Deprecated.Web search strategy. Takes effect only when enable_search is true. -
getResponseFormat
Deprecated.Format of the response content. -
getEnableThinking
Deprecated.Whether to enable reasoning. -
getThinkingBudget
Deprecated.Maximum number of tokens generated during reasoning. -
getLogprobs
Deprecated.Whether to return log probabilities for each output token. -
getTopLogprobs
Deprecated.Number of most likely tokens to return at each token position. -
getN
Deprecated.Number of responses to generate. -
getTranslationOptions
Deprecated.Translation options. -
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). -
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 when true: I like apple
-
setMaxTokens
Deprecated.Maximum tokens to generate. -
setRepetitionPenalty
Deprecated.repetition penalty -
setStopStrings
Deprecated.stopString and token are mutually exclusive. -
setStopTokens
Deprecated. -
setTools
Deprecated.Specify which tools the model can use. -
setToolChoice
Deprecated.Specify tool choice -
setParallelToolCalls
Deprecated.enable parallel tool calls -
setSearchOptions
Deprecated.Web search strategy. Takes effect only when enable_search is true. -
setResponseFormat
Deprecated.Format of the response content. -
setEnableThinking
Deprecated.Whether to enable reasoning. -
setThinkingBudget
Deprecated.Maximum number of tokens generated during reasoning. -
setLogprobs
Deprecated.Whether to return log probabilities for each output token. -
setTopLogprobs
Deprecated.Number of most likely tokens to return at each token position. -
setN
Deprecated.Number of responses to generate. -
setTranslationOptions
Deprecated.Translation options. -
toString
Deprecated.- Overrides:
toStringin classGenerationParamBase
-