From ec0c138595a3d8f4b5efde2620f44b3ca668e73a Mon Sep 17 00:00:00 2001 From: Yanyutin753 <153794571+YuWanTingbb@users.noreply.github.com> Date: Sat, 23 Mar 2024 01:14:00 +0800 Subject: [PATCH] fix rename --- .../java/com/gpt4/copilot/controller/ChatController.java | 6 +++--- .../{CopilotApplication.java => copilotApplication.java} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/com/gpt4/copilot/{CopilotApplication.java => copilotApplication.java} (99%) diff --git a/src/main/java/com/gpt4/copilot/controller/ChatController.java b/src/main/java/com/gpt4/copilot/controller/ChatController.java index 57dabc3..ce17682 100644 --- a/src/main/java/com/gpt4/copilot/controller/ChatController.java +++ b/src/main/java/com/gpt4/copilot/controller/ChatController.java @@ -5,7 +5,7 @@ import com.alibaba.fastjson2.JSONException; import com.alibaba.fastjson2.JSONObject; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import com.gpt4.copilot.CopilotApplication; +import com.gpt4.copilot.copilotApplication; import com.gpt4.copilot.pojo.Conversation; import com.gpt4.copilot.pojo.Result; import com.gpt4.copilot.pojo.SystemSetting; @@ -336,7 +336,7 @@ public class ChatController { try { jsonObject.getString("vscode_version"); } catch (JSONException e) { - String latestVSCodeVersion = CopilotApplication.getLatestVSCodeVersion(); + String latestVSCodeVersion = copilotApplication.getLatestVSCodeVersion(); if (latestVSCodeVersion != null) { jsonObject.put("vscode_version", latestVSCodeVersion); log.info("config.json没有新增vscode_version参数,现已增加!"); @@ -347,7 +347,7 @@ public class ChatController { try { jsonObject.getString("copilot_chat_version"); } catch (JSONException e) { - String latestChatVersion = CopilotApplication.getLatestExtensionVersion("GitHub", "copilot-chat"); + String latestChatVersion = copilotApplication.getLatestExtensionVersion("GitHub", "copilot-chat"); if (latestChatVersion != null) { jsonObject.put("copilot_chat_version", latestChatVersion); log.info("config.json没有新增copilot_chat_version参数,现已增加!"); diff --git a/src/main/java/com/gpt4/copilot/CopilotApplication.java b/src/main/java/com/gpt4/copilot/copilotApplication.java similarity index 99% rename from src/main/java/com/gpt4/copilot/CopilotApplication.java rename to src/main/java/com/gpt4/copilot/copilotApplication.java index 1b8bbab..5903a41 100644 --- a/src/main/java/com/gpt4/copilot/CopilotApplication.java +++ b/src/main/java/com/gpt4/copilot/copilotApplication.java @@ -31,7 +31,7 @@ import java.nio.file.Paths; @Slf4j @EnableScheduling @SpringBootApplication -public class CopilotApplication { +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"; @@ -39,7 +39,7 @@ public class CopilotApplication { String configFilePath = System.getProperty("user.dir") + File.separator + "config.json"; SystemSetting config = loadConfig(configFilePath); setSystemProperties(config); - SpringApplication.run(CopilotApplication.class, args); + SpringApplication.run(copilotApplication.class, args); printStartupMessage(config); }