From 73edeba78c15639437e86a9b57c62b8683fd45a8 Mon Sep 17 00:00:00 2001 From: ddaodan <731882332@qq.com> Date: Fri, 12 Jul 2024 19:39:55 +0800 Subject: [PATCH] =?UTF-8?q?2.0=20-=20=E6=9B=B4=E6=8D=A2=E4=B8=BAjodd-http?= =?UTF-8?q?=E5=BA=93=EF=BC=8C=E5=87=8F=E5=B0=91=E6=8F=92=E4=BB=B6=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=20-=20=E6=94=AF=E6=8C=81=E6=8C=87=E4=BB=A4=E8=A1=A5?= =?UTF-8?q?=E5=85=A8=20-=20=E7=8E=B0=E5=9C=A8=E5=8F=AF=E4=BB=A5=E5=9C=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=B6=88=E6=81=AF=E7=9A=84=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E4=BA=86=20-=20=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- changelog.md | 5 +++++ readme.md | 43 +++++++++++++++++++++++++++---------------- 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/build.gradle b/build.gradle index 7830863..53c0337 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group = 'com' -version = '1.0' +version = '2.0' repositories { mavenCentral() diff --git a/changelog.md b/changelog.md index d1dcb49..09dbfa7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ # 更新日志 +## 2.0 +- 更换为jodd-http库,减少插件大小 +- 支持指令补全 +- 现在可以在配置文件中修改所有消息的颜色了 +- 默认配置文件中增加了一些模型 ## 1.0 - 插件发布 \ No newline at end of file diff --git a/readme.md b/readme.md index d09be28..93aaf69 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@ - [x] OpenAPI格式 - [x] 自定义模型 - [x] ChatGPT反代 -- [ ] 指令补全 +- [x] 指令补全 - [ ] 上下文对话 - [ ] 自定义prompt @@ -33,32 +33,43 @@ api: # 你的 OpenAI API key,用于身份验证 # 获取 API key 的方法:访问 //platform.openai.com/account/api-keys 并创建一个新的 API key - key: "your_openai_api_key" + key: "sk-your_openai_api_key" # OpenAI API 的基础 URL,用于构建请求 base_url: "https://api.openai.com/v1" # 支持的模型列表 models: # OpenAI ChatGPT - "gpt-3.5-turbo" + - "gpt-3.5-turbo-instruct" - "gpt-4" + - "gpt-4-turbo" + - "gpt-4-turbo-preview" + - "gpt-4o" + # Google Gemini + # - "gemini-pro" + # - "gemini-1.5-pro" + # Anthropic Claude + # - "claude-3-opus" + # - "claude-3-5-sonnet" + # 以及更多... # 默认使用的模型 default_model: "gpt-3.5-turbo" # 消息相关设置 messages: - reload: "已重新加载配置文件!" - help: "===== MineChatGPT 帮助 =====" - help_ask: "/chatgpt - 向ChatGPT提问" - help_reload: "/chatgpt reload - 重新加载配置文件" - help_model: "/chatgpt model - 切换至其他模型" - help_modellist: "/chatgpt modellist - 可用的模型列表" - usage: "输入: /chatgpt model " - model_switch: "已切换至模型 %s" - chatgpt_error: "无法联系ChatGPT。" - chatgpt_response: "ChatGPT: %s" - question: "你: %s" - invalid_model: "模型无效。使用 /chatgpt modellist 查看可用模型。" - available_models: "可用模型列表:" - no_permission: "你没有权限使用这个指令。需要的权限:%s" + reload: "&a已重新加载配置文件!" + help: "&e===== MineChatGPT 帮助 =====" + help_ask: "&e/chatgpt - 向ChatGPT提问" + help_reload: "&e/chatgpt reload - 重新加载配置文件" + help_model: "&e/chatgpt model - 切换至其他模型" + help_modellist: "&e/chatgpt modellist - 可用的模型列表" + usage: "&c输入: /chatgpt model " + model_switch: "&a已切换至模型 %s" + chatgpt_error: "&c无法联系ChatGPT。" + chatgpt_response: "&bChatGPT: %s" + question: "&b你: %s" + invalid_model: "&c模型无效。使用 /chatgpt modellist 查看可用模型。" + available_models: "&e可用模型列表:" + no_permission: "&c你没有权限使用这个指令。需要的权限:%s" ``` ## 兼容的版本 ✔ = 完全支持