更换okhttp为apache httpclient,尝试减少插件体积

This commit is contained in:
2024-07-12 19:04:05 +08:00
parent 2b79f0e1e8
commit 65665d88df
9 changed files with 174 additions and 96 deletions

View File

@@ -14,7 +14,19 @@
## 安装
- 下载插件放在plugins文件夹中
- 重启服务器
> 为兼容更多版本插件使用1.13版本进行构建,因此在较高版本加载插件时,控制台会出现以下错误信息,这属于正常现象。
> ```
> [Server thread/WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
> [Server thread/WARN]: Legacy plugin MineChatGPT v1.0 does not specify an api-version.
> ```
## 截图
- 服务端截图Spigot 1.20.1
![](https://i.ddaodan.cn/images/CWindowssystem32cmd.exe_20240712406.png)
- 插件截图
![](https://i.ddaodan.cn/images/Minecraft_1.20.1_-__20240712407.png)
- 对话截图使用FastGPT训练的自定义知识库
![](https://i.ddaodan.cn/images/Minecraft_1.20.1_-__20240712408.png)
## 配置文件`config.yml`
```yaml
# API 相关设置
@@ -48,7 +60,16 @@ messages:
available_models: "可用模型列表:"
no_permission: "你没有权限使用这个指令。需要的权限:%s"
```
## 兼容的版本
✔ = 完全支持
= 部分支持
× = 不支持
只列出经过测试的版本
|服务端|支持情况|
|-|-|
|Mohist 1.20.1|✔|
|Spigot 1.20.1|✔|
|Spigot 1.12.2|✔|
## 常见问题
### `Failed to contact ChatGPT.` `无法联系ChatGPT。`