mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-20 19:36:08 +00:00
更新配置文件
This commit is contained in:
@@ -4,6 +4,25 @@
|
||||
参考[api](https://platform.openai.com/docs/guides/chat/introduction),通过该方法能注入gpt本不存在的记忆。neko.json来源于[此](https://gist.github.com/ChenYFan/ffb8390aac6c4aa44869ec10fe4eb9e2)
|
||||
- 2023/3/8 fork from: [RockChinQ/QChatGPT](https://github.com/RockChinQ/QChatGPT)
|
||||
|
||||
## 改动一览
|
||||
|
||||
### 切换完整情景模式
|
||||
|
||||
- 在`config.py`中,将`preset_mode`更改为`full_scenario`
|
||||
- 将情景json放入`scenario`文件夹中,使用`!reload`和`!reset <无后缀文件名>`指令切换
|
||||
|
||||
### 过滤脱离人设的回复
|
||||
|
||||
- 在`config.py`中将`filter_ai_warning`改为`True`
|
||||
- 在对应情景的json中添加(**注意,使用此过滤会使得机器人无法回复有关过滤词的内容**):
|
||||
|
||||
```json
|
||||
"filter": {
|
||||
"reg": "我的本质|抱歉|AI助手|人工智能|语言模型|无法提供|无法回应|机器人",
|
||||
"replace": "<替换的回复>"
|
||||
},
|
||||
```
|
||||
|
||||
## 🍺模型适配一览
|
||||
|
||||
### 文字对话
|
||||
|
||||
Reference in New Issue
Block a user