11package io .github .alexcheng1982 .springai .dashscope ;
22
33import com .alibaba .dashscope .tools .ToolBase ;
4- import com .fasterxml .jackson .annotation .JsonIgnore ;
54import com .fasterxml .jackson .annotation .JsonInclude ;
65import com .fasterxml .jackson .annotation .JsonInclude .Include ;
7- import com .fasterxml .jackson .annotation .JsonProperty ;
86import io .github .alexcheng1982 .springai .dashscope .api .DashscopeModelName ;
97import java .util .ArrayList ;
108import java .util .HashSet ;
@@ -28,23 +26,20 @@ public class DashscopeChatOptions implements FunctionCallingOptions,
2826
2927 public static final String DEFAULT_MODEL = DashscopeModelName .QWEN_TURBO ;
3028
31- private @ JsonProperty ("model" ) String model ;
32- private @ JsonProperty ("top_p" ) Float topP ;
33- private @ JsonProperty ("top_k" ) Integer topK ;
34- private @ JsonProperty ("enable_search" ) Boolean enableSearch ;
35- private @ JsonProperty ("seed" ) Integer seed ;
36- private @ JsonProperty ("repetition_penalty" ) Float repetitionPenalty ;
37- private @ JsonProperty ("temperature" ) Float temperature ;
38- private @ JsonProperty ("stops" ) List <String > stops ;
39- private @ JsonProperty ("max_tokens" ) Integer maxTokens ;
40- private @ JsonProperty ("incremental_output" ) Boolean incrementalOutput ;
41- @ JsonIgnore
29+ private String model ;
30+ private Float topP ;
31+ private Integer topK ;
32+ private Boolean enableSearch ;
33+ private Integer seed ;
34+ private Float repetitionPenalty ;
35+ private Float temperature ;
36+ private List <String > stops ;
37+ private Integer maxTokens ;
38+ private Boolean incrementalOutput ;
4239 private List <ToolBase > tools ;
4340
44- @ JsonIgnore
4541 private List <FunctionCallback > functionCallbacks = new ArrayList <>();
4642
47- @ JsonIgnore
4843 private Set <String > functions = new HashSet <>();
4944
5045 public String getModel () {
0 commit comments