Skip to content

Commit b46c6d0

Browse files
committed
Merge branch 'v4.0.6' into 'master'
fix: Change the integer type in ModelOptions to floating point type See merge request public-server/server-sdk-java!25
2 parents 753657c + 94e92be commit b46c6d0

2 files changed

Lines changed: 29 additions & 12 deletions

File tree

src/main/java/io/rong/models/agent/ModelOptions.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99
*/
1010
public class ModelOptions {
1111

12-
private Integer temperature;
13-
private Integer topP;
12+
private Float temperature;
13+
private Float topP;
1414
private Integer maxTokens;
15-
private Integer frequencyPenalty;
16-
private Integer presencePenalty;
15+
private Float frequencyPenalty;
16+
private Float presencePenalty;
1717
private List<String> stop;
1818

19-
public Integer getTemperature() {
19+
public Float getTemperature() {
2020
return temperature;
2121
}
2222

23-
public void setTemperature(Integer temperature) {
23+
public void setTemperature(Float temperature) {
2424
this.temperature = temperature;
2525
}
2626

27-
public Integer getTopP() {
27+
public Float getTopP() {
2828
return topP;
2929
}
3030

31-
public void setTopP(Integer topP) {
31+
public void setTopP(Float topP) {
3232
this.topP = topP;
3333
}
3434

@@ -40,19 +40,19 @@ public void setMaxTokens(Integer maxTokens) {
4040
this.maxTokens = maxTokens;
4141
}
4242

43-
public Integer getFrequencyPenalty() {
43+
public Float getFrequencyPenalty() {
4444
return frequencyPenalty;
4545
}
4646

47-
public void setFrequencyPenalty(Integer frequencyPenalty) {
47+
public void setFrequencyPenalty(Float frequencyPenalty) {
4848
this.frequencyPenalty = frequencyPenalty;
4949
}
5050

51-
public Integer getPresencePenalty() {
51+
public Float getPresencePenalty() {
5252
return presencePenalty;
5353
}
5454

55-
public void setPresencePenalty(Integer presencePenalty) {
55+
public void setPresencePenalty(Float presencePenalty) {
5656
this.presencePenalty = presencePenalty;
5757
}
5858

src/main/java/io/rong/models/bot/ChatbotInfoModel.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public class ChatbotInfoModel {
1515
private String profileUrl;
1616
private Map<String, String> metadata;
1717
private List<ChatbotIntegration> integrations;
18+
private Long createdAt;
19+
private Long updatedAt;
1820

1921
public String getUserId() {
2022
return userId;
@@ -64,6 +66,21 @@ public void setIntegrations(List<ChatbotIntegration> integrations) {
6466
this.integrations = integrations;
6567
}
6668

69+
public Long getCreatedAt() {
70+
return createdAt;
71+
}
72+
73+
public void setCreatedAt(Long createdAt) {
74+
this.createdAt = createdAt;
75+
}
76+
77+
public Long getUpdatedAt() {
78+
return updatedAt;
79+
}
80+
81+
public void setUpdatedAt(Long updatedAt) {
82+
this.updatedAt = updatedAt;
83+
}
6784

6885
@Override
6986
public String toString() {

0 commit comments

Comments
 (0)