Class GenerationParam

Direct Known Subclasses:
QwenParam

@Deprecated public class GenerationParam extends GenerationParamBase
Deprecated.
  • Field Details

    • toolChoice

      @SerializedName("tool_choice") protected Object toolChoice
      Deprecated.
      Specify tool choice
    • parallelToolCalls

      protected Boolean parallelToolCalls
      Deprecated.
      enable parallel tool calls
  • 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 GenerationParam.GenerationParamBuilder<?,?> 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).
    • 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
       when true:
       I
       like
       apple
       
    • getMaxTokens

      public Integer getMaxTokens()
      Deprecated.
      Maximum tokens to generate.
    • getRepetitionPenalty

      public Float getRepetitionPenalty()
      Deprecated.
      repetition penalty
    • getStopStrings

      public List<String> getStopStrings()
      Deprecated.
      stopString and token are mutually exclusive.
    • getStopTokens

      public List<List<Integer>> getStopTokens()
      Deprecated.
    • 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
    • getSearchOptions

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

      public ResponseFormat getResponseFormat()
      Deprecated.
      Format of the response content.
    • getEnableThinking

      public Boolean getEnableThinking()
      Deprecated.
      Whether to enable reasoning.
    • getThinkingBudget

      public Integer getThinkingBudget()
      Deprecated.
      Maximum number of tokens generated during reasoning.
    • getLogprobs

      public Boolean getLogprobs()
      Deprecated.
      Whether to return log probabilities for each output token.
    • getTopLogprobs

      public Integer getTopLogprobs()
      Deprecated.
      Number of most likely tokens to return at each token position.
    • getN

      public Integer getN()
      Deprecated.
      Number of responses to generate.
    • getTranslationOptions

      public TranslationOptions getTranslationOptions()
      Deprecated.
      Translation options.
    • 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).
    • 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
       when true:
       I
       like
       apple
       
    • setMaxTokens

      public void setMaxTokens(Integer maxTokens)
      Deprecated.
      Maximum tokens to generate.
    • setRepetitionPenalty

      public void setRepetitionPenalty(Float repetitionPenalty)
      Deprecated.
      repetition penalty
    • setStopStrings

      public void setStopStrings(List<String> stopStrings)
      Deprecated.
      stopString and token are mutually exclusive.
    • setStopTokens

      public void setStopTokens(List<List<Integer>> stopTokens)
      Deprecated.
    • 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
    • setSearchOptions

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

      public void setResponseFormat(ResponseFormat responseFormat)
      Deprecated.
      Format of the response content.
    • setEnableThinking

      public void setEnableThinking(Boolean enableThinking)
      Deprecated.
      Whether to enable reasoning.
    • setThinkingBudget

      public void setThinkingBudget(Integer thinkingBudget)
      Deprecated.
      Maximum number of tokens generated during reasoning.
    • setLogprobs

      public void setLogprobs(Boolean logprobs)
      Deprecated.
      Whether to return log probabilities for each output token.
    • setTopLogprobs

      public void setTopLogprobs(Integer topLogprobs)
      Deprecated.
      Number of most likely tokens to return at each token position.
    • setN

      public void setN(Integer n)
      Deprecated.
      Number of responses to generate.
    • setTranslationOptions

      public void setTranslationOptions(TranslationOptions translationOptions)
      Deprecated.
      Translation options.
    • toString

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