Class ChatCompletionParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.base.FlattenHalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.aigc.completion.ChatCompletionParam
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classChatCompletionParam.ChatCompletionParamBuilder<C extends ChatCompletionParam,B extends ChatCompletionParam.ChatCompletionParamBuilder<C, B>> Deprecated.Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.FlattenHalfDuplexParamBase
FlattenHalfDuplexParamBase.FlattenHalfDuplexParamBaseBuilder<C extends FlattenHalfDuplexParamBase,B extends FlattenHalfDuplexParamBase.FlattenHalfDuplexParamBaseBuilder<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
FieldsFields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatCompletionParam.ChatCompletionParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.Deprecated.Number between -2.0 and 2.0.com.google.gson.JsonObjectDeprecated.Get the batch request data.Deprecated.Deprecated.Deprecated.The maximum number of tokens to generate for completion.Deprecated.Deprecated.getModel()Deprecated.getN()Deprecated.Deprecated.Deprecated.Deprecated.Whether to preserve thinking/reasoning content in the response.Deprecated.Controls the reasoning effort level for models that support it.Deprecated.getSeed()Deprecated.Deprecated.getStop()Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getTools()Deprecated.Deprecated.Whether to stream tool calls as they are generated.Deprecated.getTopP()Deprecated.getUser()Deprecated.Deprecated.Enable hardware-accelerated image output for vision-language models.Deprecated.Enable high resolution image processing for vision-language models.inthashCode()Deprecated.voidsetFrequencyPenalty(Float frequencyPenalty) Deprecated.Number between -2.0 and 2.0.voidsetLogitBias(Map<Integer, Integer> logitBias) Deprecated.voidsetLogprobs(Boolean logprobs) Deprecated.voidsetMaxCompletionTokens(Integer maxCompletionTokens) Deprecated.The maximum number of tokens to generate for completion.voidsetMaxTokens(Integer maxTokens) Deprecated.voidsetMessages(List<Message> messages) Deprecated.voidDeprecated.voidDeprecated.voidsetParallelToolCalls(Boolean parallelToolCalls) Deprecated.voidsetPresencePenalty(Float presencePenalty) Deprecated.voidsetPreserveThinking(Boolean preserveThinking) Deprecated.Whether to preserve thinking/reasoning content in the response.voidsetReasoningEffort(String reasoningEffort) Deprecated.Controls the reasoning effort level for models that support it.voidsetResponseFormat(String responseFormat) Deprecated.voidDeprecated.voidsetServiceTier(String serviceTier) Deprecated.voidDeprecated.voidDeprecated.voidsetStreamOptions(ChatCompletionStreamOptions streamOptions) Deprecated.voidsetTemperature(Float temperature) Deprecated.voidsetToolChoice(Object toolChoice) Deprecated.voidDeprecated.voidsetToolStream(Boolean toolStream) Deprecated.Whether to stream tool calls as they are generated.voidsetTopLogprobs(Integer topLogprobs) Deprecated.voidDeprecated.voidDeprecated.voidsetVlEnableImageHwOutput(Boolean vlEnableImageHwOutput) Deprecated.Enable hardware-accelerated image output for vision-language models.voidsetVlHighResolutionImages(Boolean vlHighResolutionImages) Deprecated.Enable high resolution image processing for vision-language models.toString()Deprecated.voidvalidate()Deprecated.Validate the input and parameters.Methods inherited from class com.alibaba.dashscope.legacy_2x.base.FlattenHalfDuplexParamBase
addExtraBody, getBinaryData, getHeaders, getInput, getParameters, 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.
-
-
Constructor Details
-
ChatCompletionParam
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
-
validate
Deprecated.Description copied from class:HalfDuplexParamBaseValidate the input and parameters.- Overrides:
validatein classFlattenHalfDuplexParamBase- Throws:
InputRequiredException- Missing input fields.
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classFlattenHalfDuplexParamBase
-
canEqual
Deprecated.- Overrides:
canEqualin classFlattenHalfDuplexParamBase
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classFlattenHalfDuplexParamBase
-
getMessages
Deprecated. -
getModel
Deprecated.- Overrides:
getModelin classFlattenHalfDuplexParamBase
-
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
Deprecated. -
getLogprobs
Deprecated. -
getTopLogprobs
Deprecated. -
getMaxTokens
Deprecated. -
getN
Deprecated. -
getPresencePenalty
Deprecated. -
getResponseFormat
Deprecated. -
getSeed
Deprecated. -
getServiceTier
Deprecated. -
getStop
Deprecated. -
getStream
Deprecated. -
getStreamOptions
Deprecated. -
getTemperature
Deprecated. -
getTopP
Deprecated. -
getTools
Deprecated. -
getToolChoice
Deprecated. -
getParallelToolCalls
Deprecated. -
getPreserveThinking
Deprecated.Whether to preserve thinking/reasoning content in the response. When enabled, the model will include reasoning process in the output. -
getReasoningEffort
Deprecated.Controls the reasoning effort level for models that support it. Possible values: "low", "medium", "high" -
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
Deprecated.Whether to stream tool calls as they are generated. When true, tool calls will be sent incrementally rather than all at once. -
getVlHighResolutionImages
Deprecated.Enable high resolution image processing for vision-language models. Improves image understanding quality at the cost of more tokens. -
getVlEnableImageHwOutput
Deprecated.Enable hardware-accelerated image output for vision-language models. -
getUser
Deprecated. -
setMessages
Deprecated. -
setModel
Deprecated. -
setFrequencyPenalty
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
Deprecated. -
setLogprobs
Deprecated. -
setTopLogprobs
Deprecated. -
setMaxTokens
Deprecated. -
setN
Deprecated. -
setPresencePenalty
Deprecated. -
setResponseFormat
Deprecated. -
setSeed
Deprecated. -
setServiceTier
Deprecated. -
setStop
Deprecated. -
setStream
Deprecated. -
setStreamOptions
Deprecated. -
setTemperature
Deprecated. -
setTopP
Deprecated. -
setTools
Deprecated. -
setToolChoice
Deprecated. -
setParallelToolCalls
Deprecated. -
setPreserveThinking
Deprecated.Whether to preserve thinking/reasoning content in the response. When enabled, the model will include reasoning process in the output. -
setReasoningEffort
Deprecated.Controls the reasoning effort level for models that support it. Possible values: "low", "medium", "high" -
setMaxCompletionTokens
Deprecated.The maximum number of tokens to generate for completion. This is an alternative to max_tokens following OpenAI's newer API convention. -
setToolStream
Deprecated.Whether to stream tool calls as they are generated. When true, tool calls will be sent incrementally rather than all at once. -
setVlHighResolutionImages
Deprecated.Enable high resolution image processing for vision-language models. Improves image understanding quality at the cost of more tokens. -
setVlEnableImageHwOutput
Deprecated.Enable hardware-accelerated image output for vision-language models. -
setUser
Deprecated. -
toString
Deprecated.- Overrides:
toStringin classFlattenHalfDuplexParamBase
-