Thanks you use gpt4-copilot-java-0.1.3
\n" + + "Thanks you use gpt4-copilot-java-0.2.0
\n" + " \n" + " \n" + "\n" + diff --git a/src/main/java/com/gpt4/copilot/copilotApplication.java b/src/main/java/com/gpt4/copilot/copilotApplication.java index f06d3c3..81aad40 100644 --- a/src/main/java/com/gpt4/copilot/copilotApplication.java +++ b/src/main/java/com/gpt4/copilot/copilotApplication.java @@ -37,7 +37,7 @@ public class copilotApplication { private static final String VS_CODE_API_URL = "https://api.github.com/repos/microsoft/vscode/releases/latest"; private static final String VS_CODE_CHAT_URL = "https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery"; - public static void main(String[] args){ + public static void main(String[] args) { String configFilePath = System.getProperty("user.dir") + File.separator + "config.json"; SystemSetting config = loadConfig(configFilePath); setSystemProperties(config); @@ -48,7 +48,7 @@ public class copilotApplication { private static SystemSetting loadConfig(String configFilePath) { File jsonFile = new File(configFilePath); Path jsonFilePath = Paths.get(configFilePath); - if (!jsonFile.exists() || jsonFile.length() == 0){ + if (!jsonFile.exists() || jsonFile.length() == 0) { try { if (!jsonFile.exists()) { // 创建文件config.json @@ -71,7 +71,7 @@ public class copilotApplication { String jsonContent = new String(Files.readAllBytes(Paths.get(configFilePath))); // 将 JSON 字符串解析为 JSONObject JSONObject jsonObject = com.alibaba.fastjson2.JSON.parseObject(jsonContent); - if(jsonObject == null){ + if (jsonObject == null) { jsonObject = new JSONObject(); } String password = getValueOrDefault(jsonObject, "password", UUID.randomUUID().toString(), "config.json没有新增password参数,现已增加!"); @@ -115,8 +115,7 @@ public class copilotApplication { T value; if (jsonObject == null) { value = null; - } - else { + } else { try { value = (T) jsonObject.get(key); } catch (JSONException e) { @@ -297,11 +296,12 @@ public class copilotApplication { System.out.println("one_selfCopilot_limit:" + ChatController.getSystemSetting().getOne_selfCopilot_limit()); System.out.println("gpt4-copilot-java 初始化接口成功!"); System.out.println("======================================================"); - System.out.println("******原神gpt4-copilot-java-native v0.1.3启动成功******"); + System.out.println("******原神gpt4-copilot-java-native v0.2.0启动成功******"); System.out.println("* 对chat接口的模型进行重定向,减少潜在的风险"); System.out.println("* 使用ConcurrentHashMap,粗略的对于每个密钥按每分钟进行限速"); System.out.println("* 新增环境变量用于对gpt-4*等模型进行系统prompt提示"); System.out.println("* 新增url|apikey形式传入/self/*接口,用于自定义地址和密钥"); + System.out.println("* 新增对于消息报错提醒,减少对于用户的困扰"); System.out.println("* 修复部分bug,优化读取config.json代码,提升稳定性"); System.out.println("* 新增每个密钥对于特定的机器码,且保存在文件中,一秘钥一机器码,减小被查询异常"); System.out.println("URL地址:http://0.0.0.0:" + config.getServerPort() + config.getPrefix() + ""); diff --git a/target/classes/com/gpt4/copilot/controller/ChatController$1.class b/target/classes/com/gpt4/copilot/controller/ChatController$1.class index 5a8aa5d..2ef1c1b 100644 Binary files a/target/classes/com/gpt4/copilot/controller/ChatController$1.class and b/target/classes/com/gpt4/copilot/controller/ChatController$1.class differ diff --git a/target/classes/com/gpt4/copilot/controller/ChatController$2.class b/target/classes/com/gpt4/copilot/controller/ChatController$2.class index 85ca325..0575bdb 100644 Binary files a/target/classes/com/gpt4/copilot/controller/ChatController$2.class and b/target/classes/com/gpt4/copilot/controller/ChatController$2.class differ diff --git a/target/classes/com/gpt4/copilot/controller/ChatController.class b/target/classes/com/gpt4/copilot/controller/ChatController.class index 5dc2139..3c5035e 100644 Binary files a/target/classes/com/gpt4/copilot/controller/ChatController.class and b/target/classes/com/gpt4/copilot/controller/ChatController.class differ diff --git a/target/classes/com/gpt4/copilot/controller/CustomErrorController.class b/target/classes/com/gpt4/copilot/controller/CustomErrorController.class index 4318caa..f1608a3 100644 Binary files a/target/classes/com/gpt4/copilot/controller/CustomErrorController.class and b/target/classes/com/gpt4/copilot/controller/CustomErrorController.class differ diff --git a/target/classes/com/gpt4/copilot/copilotApplication.class b/target/classes/com/gpt4/copilot/copilotApplication.class index c4bcc05..ac7d631 100644 Binary files a/target/classes/com/gpt4/copilot/copilotApplication.class and b/target/classes/com/gpt4/copilot/copilotApplication.class differ diff --git a/target/classes/com/gpt4/copilot/pojo/Conversation$ConversationBuilder.class b/target/classes/com/gpt4/copilot/pojo/Conversation$ConversationBuilder.class index a5cacf0..1f00e0a 100644 Binary files a/target/classes/com/gpt4/copilot/pojo/Conversation$ConversationBuilder.class and b/target/classes/com/gpt4/copilot/pojo/Conversation$ConversationBuilder.class differ diff --git a/target/classes/com/gpt4/copilot/pojo/Conversation.class b/target/classes/com/gpt4/copilot/pojo/Conversation.class index dddae83..c07ec30 100644 Binary files a/target/classes/com/gpt4/copilot/pojo/Conversation.class and b/target/classes/com/gpt4/copilot/pojo/Conversation.class differ diff --git a/target/gpt-4-copilot-0.1.3.jar.original b/target/gpt-4-copilot-0.1.3.jar.original deleted file mode 100644 index 4819255..0000000 Binary files a/target/gpt-4-copilot-0.1.3.jar.original and /dev/null differ diff --git a/target/gpt-4-copilot-0.1.3.jar b/target/gpt-4-copilot-0.2.0.jar similarity index 99% rename from target/gpt-4-copilot-0.1.3.jar rename to target/gpt-4-copilot-0.2.0.jar index 0e55b36..37af756 100644 Binary files a/target/gpt-4-copilot-0.1.3.jar and b/target/gpt-4-copilot-0.2.0.jar differ diff --git a/target/gpt-4-copilot-0.2.0.jar.original b/target/gpt-4-copilot-0.2.0.jar.original new file mode 100644 index 0000000..7129804 Binary files /dev/null and b/target/gpt-4-copilot-0.2.0.jar.original differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index e86272c..ec29e29 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,3 +1,3 @@ artifactId=gpt-4-copilot groupId=com.gpt4.copilot -version=0.1.3 +version=0.2.0