fix: 修复死链

This commit is contained in:
RockChinQ
2024-08-30 10:51:02 +08:00
parent ef2c5db6be
commit ba4075f148
7 changed files with 7 additions and 35 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# [QChatGPT](https://github.com/RockChinQ/QChatGPT) 官方文档
> 此分支是 QChatGPT 3.x 的文档
> 此仓库是 QChatGPT 的文档仓库,代码仓库:
> [QChatGPT 代码仓库](https://github.com/RockChinQ/QChatGPT)
## 参与编写
+2 -2
View File
@@ -29,7 +29,7 @@
{
"adapter": "aiocqhttp",
"enable": false,
"host": "127.0.0.1",
"host": "0.0.0.0",
"port": 8080,
"access-token": "",
},
@@ -47,7 +47,7 @@
```
目前支持 `mirai`、`go-cqhttp`、`aiocqhttp`、`qq-botpy` 四种消息平台适配器,也可以同时启用多个同种类或不同种类的平台适配器。
各个适配器的配置方式请查看[部署教程](../deploy/config.html)。
各个消息平台的配置方式请查看部署文档。
### 多开示例
-2
View File
@@ -161,5 +161,3 @@
`role` 为消息的角色,可以是`user`(用户)、`assistant`(AI)、`system`(系统)
`content` 为字符串,表示消息内容。
在使用中通过`!default set <文件名>`指令将其设为默认(将<预设名>整体替换)
> 社区资源:[人格预设合集1000+(测试版,不确保可用性)](../deploy/README.md#人格预设合集)
-26
View File
@@ -1,26 +0,0 @@
# aiocqhttp适配器系列教程
## OneBot 11 协议
OneBot 是用于接入多种消息平台的标准化协议,详细介绍:[https://onebot.dev/](https://onebot.dev/)
以下消息框架可以通过 OneBot 11 协议接入,需选择使用`aiocqhttp`作为适配器,修改`data/platform.json`配置文件,在`platform-adapters`字段中添加以下内容(如果已经有aiocqhttp的适配器,可以直接将其enable改为true):
```json
{
"adapter": "aiocqhttp",
"enable": true,
"host": "0.0.0.0",
"port": 8080,
"access-token": ""
}
```
![data/platform.json](https://cos.thelazy.cn/pictures/202405292250017.jpeg)
当前可用的OneBot 11标准消息平台,你可以选择下方任意
- [Lagrange.OneBot的教程](./lagrange)
- [NapCat的教程](./napcat)
- [LiteLoaderQQNT的教程](./llonebot)
- [shamrock的教程](./shamrock)
+2 -2
View File
@@ -20,7 +20,7 @@
{
"adapter": "aiocqhttp",
"enable": false,
"host": "127.0.0.1",
"host": "0.0.0.0",
"port": 8080,
"access-token": ""
},
@@ -30,7 +30,7 @@
`enable`:是否启用,配置完成后请将其设为`true`
`host`:监听的 IP 地址,使用 aiocqhttp 时,QChatGPT 作为服务端被动等待框架连接,请在 Shamrock 等框架中设置`被动 ws 地址`或者`反向 ws 地址`(具体视框架而定)为 QChatGPT 监听的地址,且路径为`/ws`,例如:`ws://127.0.0.1:8080/ws`。
`host`:监听的 IP 地址,一般就保持 0.0.0.0 就可以了。使用 aiocqhttp 时,QChatGPT 作为服务端被动等待框架连接,请在 Shamrock 等框架中设置`被动 ws 地址`或者`反向 ws 地址`(具体视框架而定)为 QChatGPT 监听的地址,且路径为`/ws`,例如:`ws://127.0.0.1:8080/ws`。
`port`:设置监听的端口,默认8080,需在 Shamrock 等框架中设置为与此处一致的端口
+1 -1
View File
@@ -1,6 +1,6 @@
# 组件扩展
> 请先阅读[插件介绍页](../plugin/intro.md)
> 请先阅读[插件介绍页](./plugin-intro.md)
:::info 目录
[[toc]]
+1 -1
View File
@@ -1,6 +1,6 @@
# 插件开发
> 请先阅读[插件介绍页](../plugin/intro.md)
> 请先阅读[插件介绍页](./plugin-intro.md)
> 建议先阅读本项目源码,了解项目架构
> 问题、需求请到仓库issue发起