Skip to content

Commit 3ac1377

Browse files
committed
remove @JsonProperty in ChatOptions
1 parent 7009b4a commit 3ac1377

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

client/src/main/java/io/github/alexcheng1982/springai/dashscope/DashscopeChatOptions.java

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package io.github.alexcheng1982.springai.dashscope;
22

33
import com.alibaba.dashscope.tools.ToolBase;
4-
import com.fasterxml.jackson.annotation.JsonIgnore;
54
import com.fasterxml.jackson.annotation.JsonInclude;
65
import com.fasterxml.jackson.annotation.JsonInclude.Include;
7-
import com.fasterxml.jackson.annotation.JsonProperty;
86
import io.github.alexcheng1982.springai.dashscope.api.DashscopeModelName;
97
import java.util.ArrayList;
108
import 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

Comments
 (0)