Class ConversationParam


@Deprecated public class ConversationParam extends GenerationParamBase
Deprecated.
  • Constructor Details

  • Method Details

    • getInput

      public com.google.gson.JsonObject getInput()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request input data.
      Overrides:
      getInput in class GenerationParamBase
      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
    • validate

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

      public static ConversationParam.ConversationParamBuilder<?,?> builder()
      Deprecated.
    • equals

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

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

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

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

      @Deprecated public Integer getMaxLength()
      Deprecated.
    • getTopP

      public Double getTopP()
      Deprecated.
    • getTopK

      public Integer getTopK()
      Deprecated.
    • getEnableSearch

      public Boolean getEnableSearch()
      Deprecated.
    • getSeed

      public Integer getSeed()
      Deprecated.
    • getResultFormat

      public String getResultFormat()
      Deprecated.
      The output format, text or message, default message.
    • 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) for [qwen-turbo,qwen-plus].
    • 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):
       I
       I like
       I like apple
       true:
       I
       like
       apple
       
    • getMaxTokens

      public Integer getMaxTokens()
      Deprecated.
    • getRepetitionPenalty

      public Float getRepetitionPenalty()
      Deprecated.
    • getStopStrings

      public List<String> getStopStrings()
      Deprecated.
    • getStopTokens

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

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

      @Deprecated public void setMaxLength(Integer maxLength)
      Deprecated.
    • setTopP

      public void setTopP(Double topP)
      Deprecated.
    • setTopK

      public void setTopK(Integer topK)
      Deprecated.
    • setEnableSearch

      public void setEnableSearch(Boolean enableSearch)
      Deprecated.
    • setSeed

      public void setSeed(Integer seed)
      Deprecated.
    • setResultFormat

      public void setResultFormat(String resultFormat)
      Deprecated.
      The output format, text or message, default message.
    • 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) for [qwen-turbo,qwen-plus].
    • 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):
       I
       I like
       I like apple
       true:
       I
       like
       apple
       
    • setMaxTokens

      public void setMaxTokens(Integer maxTokens)
      Deprecated.
    • setRepetitionPenalty

      public void setRepetitionPenalty(Float repetitionPenalty)
      Deprecated.
    • setStopStrings

      public void setStopStrings(List<String> stopStrings)
      Deprecated.
    • setStopTokens

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

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