DeepSeekConfig.java 1.29 KB
Newer Older
何处是我家's avatar
提交  
何处是我家 committed
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
66
67
68
package com.ewaytek.deepseek.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "deepseek")
public class DeepSeekConfig {
    private String url;

    private String apiKey;

    private String model;

    private Double frequencyPenalty;

    private Integer maxTokens;

    private Double presencePenalty;

    private ResponseFormat responseFormat;

    private List<String> stop;

    private Boolean stream;

    private StreamOptions streamOptions;

    private Double temperature;

    private Double topP;

    private List<Tool> tools;

    private String toolChoice;

    private Boolean logprobs;

    private Integer topLogprobs;

    @Data
    public static class ResponseFormat {
        private String type;
    }
    @Data
    public static class StreamOptions {
        private Boolean includeUsage;
    }
    @Data
    public static class Tool {
        private String type;

        private Function function;
    }
    @Data
    public static class Function {
        private String name;

        private String description;

        private Map<String, Object> parameters;
    }
}