Class ChatCompletionParam


@Deprecated public class ChatCompletionParam extends FlattenHalfDuplexParamBase
Deprecated.
  • Field Details

    • toolChoice

      @SerializedName("tool_choice") protected Object toolChoice
      Deprecated.
  • 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
    • validate

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

      public static ChatCompletionParam.ChatCompletionParamBuilder<?,?> builder()
      Deprecated.
    • equals

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

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

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

      @NonNull public List<Message> getMessages()
      Deprecated.
    • getModel

      @NonNull public String getModel()
      Deprecated.
      Overrides:
      getModel in class FlattenHalfDuplexParamBase
    • getFrequencyPenalty

      public Float getFrequencyPenalty()
      Deprecated.
      Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
    • getLogitBias

      public Map<Integer,Integer> getLogitBias()
      Deprecated.
    • getLogprobs

      public Boolean getLogprobs()
      Deprecated.
    • getTopLogprobs

      public Integer getTopLogprobs()
      Deprecated.
    • getMaxTokens

      public Integer getMaxTokens()
      Deprecated.
    • getN

      public Integer getN()
      Deprecated.
    • getPresencePenalty

      public Float getPresencePenalty()
      Deprecated.
    • getResponseFormat

      public String getResponseFormat()
      Deprecated.
    • getSeed

      public Integer getSeed()
      Deprecated.
    • getServiceTier

      public String getServiceTier()
      Deprecated.
    • getStop

      public List<String> getStop()
      Deprecated.
    • getStream

      public Boolean getStream()
      Deprecated.
    • getStreamOptions

      public ChatCompletionStreamOptions getStreamOptions()
      Deprecated.
    • getTemperature

      public Float getTemperature()
      Deprecated.
    • getTopP

      public Integer getTopP()
      Deprecated.
    • getTools

      public List<ToolBase> getTools()
      Deprecated.
    • getToolChoice

      public Object getToolChoice()
      Deprecated.
    • getParallelToolCalls

      public Boolean getParallelToolCalls()
      Deprecated.
    • getPreserveThinking

      public Boolean getPreserveThinking()
      Deprecated.
      Whether to preserve thinking/reasoning content in the response. When enabled, the model will include reasoning process in the output.
    • getReasoningEffort

      public String getReasoningEffort()
      Deprecated.
      Controls the reasoning effort level for models that support it. Possible values: "low", "medium", "high"
    • getMaxCompletionTokens

      public Integer getMaxCompletionTokens()
      Deprecated.
      The maximum number of tokens to generate for completion. This is an alternative to max_tokens following OpenAI's newer API convention.
    • getToolStream

      public Boolean getToolStream()
      Deprecated.
      Whether to stream tool calls as they are generated. When true, tool calls will be sent incrementally rather than all at once.
    • getVlHighResolutionImages

      public Boolean getVlHighResolutionImages()
      Deprecated.
      Enable high resolution image processing for vision-language models. Improves image understanding quality at the cost of more tokens.
    • getVlEnableImageHwOutput

      public Boolean getVlEnableImageHwOutput()
      Deprecated.
      Enable hardware-accelerated image output for vision-language models.
    • getUser

      public String getUser()
      Deprecated.
    • setMessages

      public void setMessages(@NonNull List<Message> messages)
      Deprecated.
    • setModel

      public void setModel(@NonNull String model)
      Deprecated.
    • setFrequencyPenalty

      public void setFrequencyPenalty(Float frequencyPenalty)
      Deprecated.
      Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
    • setLogitBias

      public void setLogitBias(Map<Integer,Integer> logitBias)
      Deprecated.
    • setLogprobs

      public void setLogprobs(Boolean logprobs)
      Deprecated.
    • setTopLogprobs

      public void setTopLogprobs(Integer topLogprobs)
      Deprecated.
    • setMaxTokens

      public void setMaxTokens(Integer maxTokens)
      Deprecated.
    • setN

      public void setN(Integer n)
      Deprecated.
    • setPresencePenalty

      public void setPresencePenalty(Float presencePenalty)
      Deprecated.
    • setResponseFormat

      public void setResponseFormat(String responseFormat)
      Deprecated.
    • setSeed

      public void setSeed(Integer seed)
      Deprecated.
    • setServiceTier

      public void setServiceTier(String serviceTier)
      Deprecated.
    • setStop

      public void setStop(List<String> stop)
      Deprecated.
    • setStream

      public void setStream(Boolean stream)
      Deprecated.
    • setStreamOptions

      public void setStreamOptions(ChatCompletionStreamOptions streamOptions)
      Deprecated.
    • setTemperature

      public void setTemperature(Float temperature)
      Deprecated.
    • setTopP

      public void setTopP(Integer topP)
      Deprecated.
    • setTools

      public void setTools(List<ToolBase> tools)
      Deprecated.
    • setToolChoice

      public void setToolChoice(Object toolChoice)
      Deprecated.
    • setParallelToolCalls

      public void setParallelToolCalls(Boolean parallelToolCalls)
      Deprecated.
    • setPreserveThinking

      public void setPreserveThinking(Boolean preserveThinking)
      Deprecated.
      Whether to preserve thinking/reasoning content in the response. When enabled, the model will include reasoning process in the output.
    • setReasoningEffort

      public void setReasoningEffort(String reasoningEffort)
      Deprecated.
      Controls the reasoning effort level for models that support it. Possible values: "low", "medium", "high"
    • setMaxCompletionTokens

      public void setMaxCompletionTokens(Integer maxCompletionTokens)
      Deprecated.
      The maximum number of tokens to generate for completion. This is an alternative to max_tokens following OpenAI's newer API convention.
    • setToolStream

      public void setToolStream(Boolean toolStream)
      Deprecated.
      Whether to stream tool calls as they are generated. When true, tool calls will be sent incrementally rather than all at once.
    • setVlHighResolutionImages

      public void setVlHighResolutionImages(Boolean vlHighResolutionImages)
      Deprecated.
      Enable high resolution image processing for vision-language models. Improves image understanding quality at the cost of more tokens.
    • setVlEnableImageHwOutput

      public void setVlEnableImageHwOutput(Boolean vlEnableImageHwOutput)
      Deprecated.
      Enable hardware-accelerated image output for vision-language models.
    • setUser

      public void setUser(String user)
      Deprecated.
    • toString

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