feat(gpt): 更新模型并优化版本显示
- 将 ERNIE-3.5-8K 模型替换为 ERNIE-Speed-128K 模型 - 修改 getGPTVersion 方法以直接返回当前模型名称 - 更新 QQBot 版本号至 1.7.10
This commit is contained in:
parent
73566a41e5
commit
94890f001c
@ -10,7 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class QQBotApplication {
|
public class QQBotApplication {
|
||||||
public static final String version = "QQBot v.1.7.9.1";
|
public static final String version = "QQBot v.1.7.10";
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("version = " + version);
|
System.out.println("version = " + version);
|
||||||
|
@ -31,7 +31,7 @@ public class BaiduGPTManager extends AbsGPTManager {
|
|||||||
private static final String SecretKey = ConfigTools.load(ConfigTools.CONFIG, ConfigTools.BAIDU_GPT_SECRET_KEY, String.class);
|
private static final String SecretKey = ConfigTools.load(ConfigTools.CONFIG, ConfigTools.BAIDU_GPT_SECRET_KEY, String.class);
|
||||||
private final ConcurrentHashMap<String, List<Message>> msgMap;
|
private final ConcurrentHashMap<String, List<Message>> msgMap;
|
||||||
private final static String modelFor40 = "ERNIE-4.0-8K";
|
private final static String modelFor40 = "ERNIE-4.0-8K";
|
||||||
private final static String modelFor35 = "ERNIE-3.5-8K";
|
private final static String modelFor35 = "ERNIE-Speed-128K";
|
||||||
private String model = modelFor35;
|
private String model = modelFor35;
|
||||||
// 新增锁映射表
|
// 新增锁映射表
|
||||||
private final ConcurrentHashMap<String, AtomicBoolean> userLocks = new ConcurrentHashMap<>();
|
private final ConcurrentHashMap<String, AtomicBoolean> userLocks = new ConcurrentHashMap<>();
|
||||||
@ -213,7 +213,7 @@ public class BaiduGPTManager extends AbsGPTManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGPTVersion() {
|
public String getGPTVersion() {
|
||||||
return (model.equals(modelFor35) ? "3.5" : "4.0");
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
Loading…
Reference in New Issue
Block a user