Administrator
2025-09-01 537cea53b6e54fdcf1b178f1ef84d5fd07e27f57
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
package cc.mrbird.febs.ai.strategy.enumerates;
 
import lombok.Getter;
 
/**
 * @author Administrator
 */
 
@Getter
public enum LlmStrategyEnum {
 
 
    ALI(2,"AliLlmStrategyService","阿里百炼大模型"),
    HS(1,"HsLlmStrategyService","火山大模型");
 
    private final int code;
    private final String name;
    private final String value;
 
    LlmStrategyEnum(int code,String name,String value) {
 
        this.code = code;
        this.name = name;
        this.value = value;
    }
 
    public static String getName(int code) {
        for (LlmStrategyEnum c : LlmStrategyEnum.values()) {
            if (c.code == code) {
                return c.name;
            }
        }
        return null;
    }
}