feat(gpt): 更新模型并优化版本显示

- 将 ERNIE-3.5-8K 模型替换为 ERNIE-Speed-128K 模型
- 修改 getGPTVersion 方法以直接返回当前模型名称
- 更新 QQBot 版本号至 1.7.10
This commit is contained in:
Yutou 2025-02-05 18:18:48 +08:00
parent 73566a41e5
commit 94890f001c
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
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) {
System.out.println("version = " + version);

View File

@ -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 final ConcurrentHashMap<String, List<Message>> msgMap;
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 final ConcurrentHashMap<String, AtomicBoolean> userLocks = new ConcurrentHashMap<>();
@ -213,7 +213,7 @@ public class BaiduGPTManager extends AbsGPTManager {
@Override
public String getGPTVersion() {
return (model.equals(modelFor35) ? "3.5" : "4.0");
return model;
}
public static void main(String[] args) throws Exception {