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 public class MultiModalConversationParam extends HalfDuplexServiceParam
Deprecated.
  • Field Details

    • toolChoice

      protected Object toolChoice
      Deprecated.
      Specify tool choice
    • parallelToolCalls

      protected Boolean parallelToolCalls
      Deprecated.
      enable parallel tool calls
    • vlHighResolutionImages

      protected Boolean vlHighResolutionImages
      Deprecated.
      enable vl_high_resolution_images
    • vlEnableImageHwOutput

      protected Boolean vlEnableImageHwOutput
      Deprecated.
      enable vl_enable_image_hw_output
  • Constructor Details

  • Method Details

    • getHttpBody

      public com.google.gson.JsonObject getHttpBody()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Specified by:
      getHttpBody in class HalfDuplexParamBase
      Returns:
      The http request body
    • getInput

      public com.google.gson.JsonObject getInput()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request input data.
      Specified by:
      getInput in class HalfDuplexParamBase
      Returns:
      The input data object.
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      The service parameters.
      Overrides:
      getParameters in class HalfDuplexServiceParam
      Returns:
      The parameters
    • getBinaryData

      public ByteBuffer getBinaryData()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the binary data, only websocket, if no binary data, return null.
      Specified by:
      getBinaryData in class HalfDuplexParamBase
      Returns:
      The binary data
    • validate

      public void validate() throws InputRequiredException
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Validate the input and parameters.
      Specified by:
      validate in class HalfDuplexParamBase
      Throws:
      InputRequiredException - Missing input fields.
    • builder

      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class HalfDuplexServiceParam
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class HalfDuplexServiceParam
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class HalfDuplexServiceParam
    • getMessages

      public List<Object> getMessages()
      Deprecated.
    • getMaxLength

      @Deprecated public Integer 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

      public Double 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

      public Integer getTopK()
      Deprecated.
      A sampling strategy, the k largest elements of the given mass are considered
    • getRepetitionPenalty

      public Float 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

      public Float 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

      public Boolean getEnableSearch()
      Deprecated.
    • getSearchOptions

      public SearchOptions getSearchOptions()
      Deprecated.
      Web search strategy. Takes effect only when enable_search is true.
    • getSeed

      public Integer getSeed()
      Deprecated.
    • getTemperature

      public Float 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

      public Integer 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

      public Boolean 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

      public List<String> getModalities()
      Deprecated.
      Output format of the model including "text" and "audio". Default value: ["text"]
    • getAudio

      public AudioParameters getAudio()
      Deprecated.
      audio output parameters
    • getOcrOptions

      public OcrOptions getOcrOptions()
      Deprecated.
      ocr options
    • getText

      public String getText()
      Deprecated.
      text input
    • getVoice

      public AudioParameters.Voice getVoice()
      Deprecated.
      voice of tts
    • getTools

      public List<ToolBase> getTools()
      Deprecated.
      Specify which tools the model can use.
    • getToolChoice

      public Object getToolChoice()
      Deprecated.
      Specify tool choice
    • getParallelToolCalls

      public Boolean getParallelToolCalls()
      Deprecated.
      enable parallel tool calls
    • getVlHighResolutionImages

      public Boolean getVlHighResolutionImages()
      Deprecated.
      enable vl_high_resolution_images
    • getVlEnableImageHwOutput

      public Boolean getVlEnableImageHwOutput()
      Deprecated.
      enable vl_enable_image_hw_output
    • getResponseFormat

      public ResponseFormat getResponseFormat()
      Deprecated.
      response format
    • getNegativePrompt

      public String getNegativePrompt()
      Deprecated.
      negative prompt
    • getPromptExtend

      public Boolean getPromptExtend()
      Deprecated.
      prompt extend
    • getWatermark

      public Boolean getWatermark()
      Deprecated.
      watermark
    • getSize

      public String getSize()
      Deprecated.
      picture size
    • getN

      public Integer getN()
      Deprecated.
      number of images
    • getLanguageType

      public String getLanguageType()
      Deprecated.
      language type for tts
    • getEnableThinking

      public Boolean getEnableThinking()
      Deprecated.
      enable thinking
    • getThinkingBudget

      public Integer getThinkingBudget()
      Deprecated.
      thinking budget
    • getStopStrings

      public List<String> getStopStrings()
      Deprecated.
      stop words or token ids to stop generation
    • getStopTokens

      public List<List<Integer>> getStopTokens()
      Deprecated.
    • getLogprobs

      public Boolean getLogprobs()
      Deprecated.
      whether to return log probabilities of output tokens, supported for qwen-vl-ocr-2025-04-13 and later
    • getTopLogprobs

      public Integer getTopLogprobs()
      Deprecated.
      number of top candidate tokens to return log probabilities for, range [0,5], only effective when logprobs is true
    • setMessages

      public void setMessages(List<Object> messages)
      Deprecated.
    • setMaxLength

      @Deprecated public void setMaxLength(Integer maxLength)
      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

      public void setTopP(Double topP)
      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

      public void setTopK(Integer topK)
      Deprecated.
      A sampling strategy, the k largest elements of the given mass are considered
    • setRepetitionPenalty

      public void setRepetitionPenalty(Float repetitionPenalty)
      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

      public void setPresencePenalty(Float presencePenalty)
      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

      public void setEnableSearch(Boolean enableSearch)
      Deprecated.
    • setSearchOptions

      public void setSearchOptions(SearchOptions searchOptions)
      Deprecated.
      Web search strategy. Takes effect only when enable_search is true.
    • setSeed

      public void setSeed(Integer seed)
      Deprecated.
    • setTemperature

      public void setTemperature(Float temperature)
      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

      public void setMaxTokens(Integer maxTokens)
      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

      public void setIncrementalOutput(Boolean incrementalOutput)
      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

      public void setModalities(List<String> modalities)
      Deprecated.
      Output format of the model including "text" and "audio". Default value: ["text"]
    • setAudio

      public void setAudio(AudioParameters audio)
      Deprecated.
      audio output parameters
    • setOcrOptions

      public void setOcrOptions(OcrOptions ocrOptions)
      Deprecated.
      ocr options
    • setText

      public void setText(String text)
      Deprecated.
      text input
    • setVoice

      public void setVoice(AudioParameters.Voice voice)
      Deprecated.
      voice of tts
    • setTools

      public void setTools(List<ToolBase> tools)
      Deprecated.
      Specify which tools the model can use.
    • setToolChoice

      public void setToolChoice(Object toolChoice)
      Deprecated.
      Specify tool choice
    • setParallelToolCalls

      public void setParallelToolCalls(Boolean parallelToolCalls)
      Deprecated.
      enable parallel tool calls
    • setVlHighResolutionImages

      public void setVlHighResolutionImages(Boolean vlHighResolutionImages)
      Deprecated.
      enable vl_high_resolution_images
    • setVlEnableImageHwOutput

      public void setVlEnableImageHwOutput(Boolean vlEnableImageHwOutput)
      Deprecated.
      enable vl_enable_image_hw_output
    • setResponseFormat

      public void setResponseFormat(ResponseFormat responseFormat)
      Deprecated.
      response format
    • setNegativePrompt

      public void setNegativePrompt(String negativePrompt)
      Deprecated.
      negative prompt
    • setPromptExtend

      public void setPromptExtend(Boolean promptExtend)
      Deprecated.
      prompt extend
    • setWatermark

      public void setWatermark(Boolean watermark)
      Deprecated.
      watermark
    • setSize

      public void setSize(String size)
      Deprecated.
      picture size
    • setN

      public void setN(Integer n)
      Deprecated.
      number of images
    • setLanguageType

      public void setLanguageType(String languageType)
      Deprecated.
      language type for tts
    • setEnableThinking

      public void setEnableThinking(Boolean enableThinking)
      Deprecated.
      enable thinking
    • setThinkingBudget

      public void setThinkingBudget(Integer thinkingBudget)
      Deprecated.
      thinking budget
    • setStopStrings

      public void setStopStrings(List<String> stopStrings)
      Deprecated.
      stop words or token ids to stop generation
    • setStopTokens

      public void setStopTokens(List<List<Integer>> stopTokens)
      Deprecated.
    • setLogprobs

      public void setLogprobs(Boolean logprobs)
      Deprecated.
      whether to return log probabilities of output tokens, supported for qwen-vl-ocr-2025-04-13 and later
    • setTopLogprobs

      public void setTopLogprobs(Integer topLogprobs)
      Deprecated.
      number of top candidate tokens to return log probabilities for, range [0,5], only effective when logprobs is true
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class HalfDuplexParamBase