Class MultiModalConversationParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
com.alibaba.dashscope.legacy_2x.aigc.multimodalconversation.MultiModalConversationParam
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMultiModalConversationParam.MultiModalConversationParamBuilder<C extends MultiModalConversationParam,B extends MultiModalConversationParam.MultiModalConversationParamBuilder<C, B>> Deprecated.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 choiceprotected BooleanDeprecated.enable vl_enable_image_hw_outputprotected BooleanDeprecated.enable vl_high_resolution_imagesFields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.protected booleanDeprecated.booleanDeprecated.getAudio()Deprecated.audio output parametersDeprecated.Get the binary data, only websocket, if no binary data, return null.Deprecated.Deprecated.enable thinkingcom.google.gson.JsonObjectDeprecated.Get the batch request data.Deprecated.Used to control the streaming output mode.com.google.gson.JsonObjectgetInput()Deprecated.Get the request input data.Deprecated.language type for ttsDeprecated.whether to return log probabilities of output tokens, supported for qwen-vl-ocr-2025-04-13 and laterDeprecated.Deprecated.The maximum length of tokens to generate.Deprecated.Deprecated.Output format of the model including "text" and "audio".getN()Deprecated.number of imagesDeprecated.negative promptDeprecated.ocr optionsDeprecated.enable parallel tool callsDeprecated.The service parameters.Deprecated.A parameter that controls the repetitiveness of words.Deprecated.prompt extendDeprecated.Used to control the repetitiveness of the model when generating text.Deprecated.response formatDeprecated.Web search strategy.getSeed()Deprecated.getSize()Deprecated.picture sizeDeprecated.stop words or token ids to stop generationDeprecated.Deprecated.Used to control the degree of randomness and diversity.getText()Deprecated.text inputDeprecated.thinking budgetDeprecated.Specify tool choicegetTools()Deprecated.Specify which tools the model can use.getTopK()Deprecated.A sampling strategy, the k largest elements of the given mass are consideredDeprecated.number of top candidate tokens to return log probabilities for, range [0,5], only effective when logprobs is truegetTopP()Deprecated.A sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.Deprecated.enable vl_enable_image_hw_outputDeprecated.enable vl_high_resolution_imagesgetVoice()Deprecated.voice of ttsDeprecated.watermarkinthashCode()Deprecated.voidsetAudio(AudioParameters audio) Deprecated.audio output parametersvoidsetEnableSearch(Boolean enableSearch) Deprecated.voidsetEnableThinking(Boolean enableThinking) Deprecated.enable thinkingvoidsetIncrementalOutput(Boolean incrementalOutput) Deprecated.Used to control the streaming output mode.voidsetLanguageType(String languageType) Deprecated.language type for ttsvoidsetLogprobs(Boolean logprobs) Deprecated.whether to return log probabilities of output tokens, supported for qwen-vl-ocr-2025-04-13 and latervoidsetMaxLength(Integer maxLength) Deprecated.voidsetMaxTokens(Integer maxTokens) Deprecated.The maximum length of tokens to generate.voidsetMessages(List<Object> messages) Deprecated.voidsetModalities(List<String> modalities) Deprecated.Output format of the model including "text" and "audio".voidDeprecated.number of imagesvoidsetNegativePrompt(String negativePrompt) Deprecated.negative promptvoidsetOcrOptions(OcrOptions ocrOptions) Deprecated.ocr optionsvoidsetParallelToolCalls(Boolean parallelToolCalls) Deprecated.enable parallel tool callsvoidsetPresencePenalty(Float presencePenalty) Deprecated.A parameter that controls the repetitiveness of words.voidsetPromptExtend(Boolean promptExtend) Deprecated.prompt extendvoidsetRepetitionPenalty(Float repetitionPenalty) Deprecated.Used to control the repetitiveness of the model when generating text.voidsetResponseFormat(ResponseFormat responseFormat) Deprecated.response formatvoidsetSearchOptions(SearchOptions searchOptions) Deprecated.Web search strategy.voidDeprecated.voidDeprecated.picture sizevoidsetStopStrings(List<String> stopStrings) Deprecated.stop words or token ids to stop generationvoidsetStopTokens(List<List<Integer>> stopTokens) Deprecated.voidsetTemperature(Float temperature) Deprecated.Used to control the degree of randomness and diversity.voidDeprecated.text inputvoidsetThinkingBudget(Integer thinkingBudget) Deprecated.thinking budgetvoidsetToolChoice(Object toolChoice) Deprecated.Specify tool choicevoidDeprecated.Specify which tools the model can use.voidDeprecated.A sampling strategy, the k largest elements of the given mass are consideredvoidsetTopLogprobs(Integer topLogprobs) Deprecated.number of top candidate tokens to return log probabilities for, range [0,5], only effective when logprobs is truevoidDeprecated.A sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.voidsetVlEnableImageHwOutput(Boolean vlEnableImageHwOutput) Deprecated.enable vl_enable_image_hw_outputvoidsetVlHighResolutionImages(Boolean vlHighResolutionImages) Deprecated.enable vl_high_resolution_imagesvoidsetVoice(AudioParameters.Voice voice) Deprecated.voice of ttsvoidsetWatermark(Boolean watermark) Deprecated.watermarktoString()Deprecated.voidvalidate()Deprecated.Validate the input and parameters.Methods 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 -
vlHighResolutionImages
Deprecated.enable vl_high_resolution_images -
vlEnableImageHwOutput
Deprecated.enable vl_enable_image_hw_output
-
-
Constructor Details
-
MultiModalConversationParam
protected MultiModalConversationParam(MultiModalConversationParam.MultiModalConversationParamBuilder<?, ?> b) Deprecated.
-
-
Method Details
-
getHttpBody
public com.google.gson.JsonObject getHttpBody()Deprecated.Description copied from class:HalfDuplexParamBaseGet the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}- Specified by:
getHttpBodyin classHalfDuplexParamBase- Returns:
- The http request body
-
getInput
public com.google.gson.JsonObject getInput()Deprecated.Description copied from class:HalfDuplexParamBaseGet the request input data.- Specified by:
getInputin classHalfDuplexParamBase- Returns:
- The input data object.
-
getParameters
Deprecated.Description copied from class:HalfDuplexParamBaseThe service parameters.- Overrides:
getParametersin classHalfDuplexServiceParam- Returns:
- The parameters
-
getBinaryData
Deprecated.Description copied from class:HalfDuplexParamBaseGet the binary data, only websocket, if no binary data, return null.- Specified by:
getBinaryDatain classHalfDuplexParamBase- Returns:
- The binary data
-
validate
Deprecated.Description copied from class:HalfDuplexParamBaseValidate the input and parameters.- Specified by:
validatein classHalfDuplexParamBase- Throws:
InputRequiredException- Missing input fields.
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classHalfDuplexServiceParam
-
canEqual
Deprecated.- Overrides:
canEqualin classHalfDuplexServiceParam
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classHalfDuplexServiceParam
-
getMessages
Deprecated. -
getMaxLength
Deprecated.The maximum length of tokens to generate. The token count of your prompt plus max_length cannot exceed the model's context length. Most models have a context length of 2000 tokens -
getTopP
Deprecated.A sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered -
getTopK
Deprecated.A sampling strategy, the k largest elements of the given mass are considered -
getRepetitionPenalty
Deprecated.Used to control the repetitiveness of the model when generating text. Increasing the repetition_penalty can reduce the repetitiveness of the model's output. A value of 1.0 indicates no penalty. Default value: 1.0 -
getPresencePenalty
Deprecated.A parameter that controls the repetitiveness of words. It reduces the probability of the same word appearing repeatedly by penalizing words that have already been generated, thus increasing the diversity of the generated text. A value of 0 indicates no penalty. Default value: 0.0 -
getEnableSearch
Deprecated. -
getSearchOptions
Deprecated.Web search strategy. Takes effect only when enable_search is true. -
getSeed
Deprecated. -
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). Default value: 1.0 -
getMaxTokens
Deprecated.The maximum length of tokens to generate. The token count of your prompt plus max_length cannot exceed the model's context length. -
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): /** Used to control the streaming output mode. If true, each chunk contains only incremental content without accumulation. If false, SDK accumulates chunks locally and returns full content in each chunk. Must be explicitly set - no default value.incrementalOutput=true (incremental): Chunk1: reasoning="I'll analyze first", content=[] Chunk2: reasoning="It looks like a sheep", content=[{text="This image"}] Chunk3: reasoning="", content=[{text="and a car"}] incrementalOutput=false (full): Chunk1: reasoning="I'll analyze first", content=[] Chunk2: reasoning="I'll analyze first. It looks like a sheep", content=[{text="This image"}] Chunk3: reasoning="I'll analyze first. It looks like a sheep", content=[{text="This image and a car"}] -
getModalities
Deprecated.Output format of the model including "text" and "audio". Default value: ["text"] -
getAudio
Deprecated.audio output parameters -
getOcrOptions
Deprecated.ocr options -
getText
Deprecated.text input -
getVoice
Deprecated.voice of tts -
getTools
Deprecated.Specify which tools the model can use. -
getToolChoice
Deprecated.Specify tool choice -
getParallelToolCalls
Deprecated.enable parallel tool calls -
getVlHighResolutionImages
Deprecated.enable vl_high_resolution_images -
getVlEnableImageHwOutput
Deprecated.enable vl_enable_image_hw_output -
getResponseFormat
Deprecated.response format -
getNegativePrompt
Deprecated.negative prompt -
getPromptExtend
Deprecated.prompt extend -
getWatermark
Deprecated.watermark -
getSize
Deprecated.picture size -
getN
Deprecated.number of images -
getLanguageType
Deprecated.language type for tts -
getEnableThinking
Deprecated.enable thinking -
getThinkingBudget
Deprecated.thinking budget -
getStopStrings
Deprecated.stop words or token ids to stop generation -
getStopTokens
Deprecated. -
getLogprobs
Deprecated.whether to return log probabilities of output tokens, supported for qwen-vl-ocr-2025-04-13 and later -
getTopLogprobs
Deprecated.number of top candidate tokens to return log probabilities for, range [0,5], only effective when logprobs is true -
setMessages
Deprecated. -
setMaxLength
Deprecated.The maximum length of tokens to generate. The token count of your prompt plus max_length cannot exceed the model's context length. Most models have a context length of 2000 tokens -
setTopP
Deprecated.A sampling strategy, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered -
setTopK
Deprecated.A sampling strategy, the k largest elements of the given mass are considered -
setRepetitionPenalty
Deprecated.Used to control the repetitiveness of the model when generating text. Increasing the repetition_penalty can reduce the repetitiveness of the model's output. A value of 1.0 indicates no penalty. Default value: 1.0 -
setPresencePenalty
Deprecated.A parameter that controls the repetitiveness of words. It reduces the probability of the same word appearing repeatedly by penalizing words that have already been generated, thus increasing the diversity of the generated text. A value of 0 indicates no penalty. Default value: 0.0 -
setEnableSearch
Deprecated. -
setSearchOptions
Deprecated.Web search strategy. Takes effect only when enable_search is true. -
setSeed
Deprecated. -
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). Default value: 1.0 -
setMaxTokens
Deprecated.The maximum length of tokens to generate. The token count of your prompt plus max_length cannot exceed the model's context length. -
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): /** Used to control the streaming output mode. If true, each chunk contains only incremental content without accumulation. If false, SDK accumulates chunks locally and returns full content in each chunk. Must be explicitly set - no default value.incrementalOutput=true (incremental): Chunk1: reasoning="I'll analyze first", content=[] Chunk2: reasoning="It looks like a sheep", content=[{text="This image"}] Chunk3: reasoning="", content=[{text="and a car"}] incrementalOutput=false (full): Chunk1: reasoning="I'll analyze first", content=[] Chunk2: reasoning="I'll analyze first. It looks like a sheep", content=[{text="This image"}] Chunk3: reasoning="I'll analyze first. It looks like a sheep", content=[{text="This image and a car"}] -
setModalities
Deprecated.Output format of the model including "text" and "audio". Default value: ["text"] -
setAudio
Deprecated.audio output parameters -
setOcrOptions
Deprecated.ocr options -
setText
Deprecated.text input -
setVoice
Deprecated.voice of tts -
setTools
Deprecated.Specify which tools the model can use. -
setToolChoice
Deprecated.Specify tool choice -
setParallelToolCalls
Deprecated.enable parallel tool calls -
setVlHighResolutionImages
Deprecated.enable vl_high_resolution_images -
setVlEnableImageHwOutput
Deprecated.enable vl_enable_image_hw_output -
setResponseFormat
Deprecated.response format -
setNegativePrompt
Deprecated.negative prompt -
setPromptExtend
Deprecated.prompt extend -
setWatermark
Deprecated.watermark -
setSize
Deprecated.picture size -
setN
Deprecated.number of images -
setLanguageType
Deprecated.language type for tts -
setEnableThinking
Deprecated.enable thinking -
setThinkingBudget
Deprecated.thinking budget -
setStopStrings
Deprecated.stop words or token ids to stop generation -
setStopTokens
Deprecated. -
setLogprobs
Deprecated.whether to return log probabilities of output tokens, supported for qwen-vl-ocr-2025-04-13 and later -
setTopLogprobs
Deprecated.number of top candidate tokens to return log probabilities for, range [0,5], only effective when logprobs is true -
toString
Deprecated.- Overrides:
toStringin classHalfDuplexParamBase
-