办学质量监测教学评价系统
ageerle
2025-02-07 c1cbfc2b93678bf47baf02b116a7aaa81f3473cf
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
package org.ruoyi.common.chat.request;
 
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.ruoyi.common.chat.entity.chat.Content;
import org.ruoyi.common.chat.entity.chat.Message;
 
import java.util.List;
 
/**
 * 描述:
 *
 * @author https:www.unfbx.com
 * @sine 2023-04-08
 */
@Data
public class ChatRequest {
 
    @NotEmpty(message = "传入的模型不能为空")
    private String model;
 
    @NotEmpty(message = "对话消息不能为空")
    List<Message> messages;
 
    List<Content> imageContent;
 
    private String prompt;
 
    private String userId;
 
    /**
     * 知识库id
     */
    private String kid;
 
    /**
     * gpt的默认设置
     */
    private String systemMessage = "";
 
    private double top_p = 1;
 
    private double temperature = 0.2;
 
    /**
     * 上下文的条数
     */
    private Integer contentNumber = 10;
 
    /**
     * 是否携带上下文
     */
    private Boolean usingContext = Boolean.TRUE;
 
}