Skip to content

Commit 73edeba

Browse files
committed
2.0
- 更换为jodd-http库,减少插件大小 - 支持指令补全 - 现在可以在配置文件中修改所有消息的颜色了 - 默认配置文件中增加了一些模型
1 parent 293c925 commit 73edeba

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = 'com'
7-
version = '1.0'
7+
version = '2.0'
88

99
repositories {
1010
mavenCentral()

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# 更新日志
2+
## 2.0
3+
- 更换为jodd-http库,减少插件大小
4+
- 支持指令补全
5+
- 现在可以在配置文件中修改所有消息的颜色了
6+
- 默认配置文件中增加了一些模型
27
## 1.0
38
- 插件发布

readme.md

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- [x] OpenAPI格式
88
- [x] 自定义模型
99
- [x] ChatGPT反代
10-
- [ ] 指令补全
10+
- [x] 指令补全
1111
- [ ] 上下文对话
1212
- [ ] 自定义prompt
1313

@@ -33,32 +33,43 @@
3333
api:
3434
# 你的 OpenAI API key,用于身份验证
3535
# 获取 API key 的方法:访问 //platform.openai.com/account/api-keys 并创建一个新的 API key
36-
key: "your_openai_api_key"
36+
key: "sk-your_openai_api_key"
3737
# OpenAI API 的基础 URL,用于构建请求
3838
base_url: "https://api.openai.com/v1"
3939
# 支持的模型列表
4040
models:
4141
# OpenAI ChatGPT
4242
- "gpt-3.5-turbo"
43+
- "gpt-3.5-turbo-instruct"
4344
- "gpt-4"
45+
- "gpt-4-turbo"
46+
- "gpt-4-turbo-preview"
47+
- "gpt-4o"
48+
# Google Gemini
49+
# - "gemini-pro"
50+
# - "gemini-1.5-pro"
51+
# Anthropic Claude
52+
# - "claude-3-opus"
53+
# - "claude-3-5-sonnet"
54+
# 以及更多...
4455
# 默认使用的模型
4556
default_model: "gpt-3.5-turbo"
4657
# 消息相关设置
4758
messages:
48-
reload: "已重新加载配置文件!"
49-
help: "===== MineChatGPT 帮助 ====="
50-
help_ask: "/chatgpt <text> - 向ChatGPT提问"
51-
help_reload: "/chatgpt reload - 重新加载配置文件"
52-
help_model: "/chatgpt model <model_name> - 切换至其他模型"
53-
help_modellist: "/chatgpt modellist - 可用的模型列表"
54-
usage: "输入: /chatgpt model <model_name>"
55-
model_switch: "已切换至模型 %s"
56-
chatgpt_error: "无法联系ChatGPT。"
57-
chatgpt_response: "ChatGPT: %s"
58-
question: ": %s"
59-
invalid_model: "模型无效。使用 /chatgpt modellist 查看可用模型。"
60-
available_models: "可用模型列表:"
61-
no_permission: "你没有权限使用这个指令。需要的权限:%s"
59+
reload: "&a已重新加载配置文件!"
60+
help: "&e===== MineChatGPT 帮助 ====="
61+
help_ask: "&e/chatgpt <text> - 向ChatGPT提问"
62+
help_reload: "&e/chatgpt reload - 重新加载配置文件"
63+
help_model: "&e/chatgpt model <model_name> - 切换至其他模型"
64+
help_modellist: "&e/chatgpt modellist - 可用的模型列表"
65+
usage: "&c输入: /chatgpt model <model_name>"
66+
model_switch: "&a已切换至模型 %s"
67+
chatgpt_error: "&c无法联系ChatGPT。"
68+
chatgpt_response: "&bChatGPT: %s"
69+
question: "&b你: %s"
70+
invalid_model: "&c模型无效。使用 /chatgpt modellist 查看可用模型。"
71+
available_models: "&e可用模型列表:"
72+
no_permission: "&c你没有权限使用这个指令。需要的权限:%s"
6273
```
6374
## 兼容的版本
6475
✔ = 完全支持

0 commit comments

Comments
 (0)