fix xf chat param type

This commit is contained in:
ran.shang
2025-07-03 15:17:39 +08:00
parent 6cbb4526c8
commit c6a46b62cc

View File

@@ -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;