fix xf chat param type
This commit is contained in:
@@ -23,17 +23,17 @@ public class ChatReq implements Serializable{
|
||||
@NotNull(message = "消息内容不能为空")
|
||||
private List<MessageDTO> messages;
|
||||
@Default
|
||||
private String temperature = "0.3";
|
||||
private Float temperature = 0.3f;
|
||||
@Default
|
||||
private String max_tokens = "150";
|
||||
private Integer max_tokens = 150;
|
||||
// @Default
|
||||
// private String repetition_penalty = "1.25";
|
||||
@Default
|
||||
private String repetition_penalty = "1.25";
|
||||
private Float top_p = 0.65f;
|
||||
@Default
|
||||
private String top_p = "0.65";
|
||||
private Float presence_penalty = -0.6f;
|
||||
@Default
|
||||
private String presence_penalty = "-0.6";
|
||||
@Default
|
||||
private String frequency_penalty = "0.2";
|
||||
private Float frequency_penalty = 0.2f;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user