mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
更新配置文件
This commit is contained in:
19
README.md
19
README.md
@@ -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": "<替换的回复>"
|
||||
},
|
||||
```
|
||||
|
||||
## 🍺模型适配一览
|
||||
|
||||
### 文字对话
|
||||
|
||||
@@ -79,6 +79,17 @@ default_prompt = {
|
||||
"default": "如果我之后想获取帮助,请你说“输入!help获取帮助”",
|
||||
}
|
||||
|
||||
# 实验性设置项:JSON完整情景导入
|
||||
full_prompt_dir = "scenario/"
|
||||
|
||||
# 预设prompt模式
|
||||
# 参考值:default / full_scenario
|
||||
preset_mode = "default"
|
||||
|
||||
# 过滤AI脱离人设的消息
|
||||
# 这类消息在对应情景json中设置,将其替换为自定义消息,以保持人格
|
||||
filter_ai_warning = False
|
||||
|
||||
# 群内响应规则
|
||||
# 符合此消息的群内消息即使不包含at机器人也会响应
|
||||
# 支持消息前缀匹配及正则表达式匹配
|
||||
|
||||
Reference in New Issue
Block a user