办学质量监测教学评价系统
ageerle
2025-03-11 6a1b544545ba2a005a1d6263f3b42aaeeef78bcd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package org.ruoyi.common.chat.domain.request;
 
import org.ruoyi.common.chat.entity.chat.Message;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
 
import java.util.List;
 
/**
 * 描述:
 *
 * @author https:www.unfbx.com
 * @sine 2023-04-08
 */
@Data
public class ChatRequest {
 
 
    private String frequency_penalty;
 
    private String max_tokens;
 
    @NotEmpty(message = "对话消息不能为空")
    List<Message> messages;
 
    @NotEmpty(message = "传入的模型不能为空")
    private String model;
 
    private String presence_penalty;
 
    private String stream;
 
    private double temperature;
 
    private double top_p = 1;
 
    /**
     * 知识库id
     */
    private String kid;
 
    private String userId;
//
 
//
//    /**
//     * gpt的默认设置
//     */
//    private String systemMessage = "";
//
//
//
//    private double temperature = 0.2;
//
//    /**
//     * 上下文的条数
//     */
//    private Integer contentNumber = 10;
//
//    /**
//     * 是否携带上下文
//     */
//    private Boolean usingContext = Boolean.TRUE;
 
}