update document

This commit is contained in:
Xun Cai
2023-03-25 16:21:15 +11:00
parent ba4b8cc154
commit 581eaf2bef

View File

@@ -74,16 +74,6 @@ cp config-template.json config.json
在使用时只需要更改 model 和 channel 配置块下的 type 字段,即可在任意模型和应用间完成切换,连接不同的通路。下面将依次介绍各个 模型 及 应用 的配置和运行过程。
#### model 配置
+ type: chatgpt
+ `max_history_num`[optional]: 对话最大记忆长度,超过该长度则清理前面的记忆。
#### common 配置
+ `clear_memory_commands`: 对话内指令,主动清空前文记忆,字符串数组可自定义指令别名。
+ default: ["#清除记忆"]
## 二、选择模型
### 1. ChatGPT
@@ -123,6 +113,7 @@ pip3 install --upgrade openai
+ `model`: 模型名称,目前支持填入 `gpt-3.5-turbo`, `gpt-4`, `gpt-4-32k` (其中gpt-4 api暂未开放)
+ `proxy`: 代理客户端的地址,详情参考 [#56](https://github.com/zhayujie/bot-on-anything/issues/56)
+ `character_desc`: 配置中保存着你对chatgpt说的一段话他会记住这段话并作为他的设定你可以为他定制任何人格
+ `max_history_num`[optional]: 对话最大记忆长度,超过该长度则清理前面的记忆。
### 2.GPT-3.0
@@ -494,3 +485,9 @@ pip3 install PyJWT flask
本地运行:`python3 app.py`运行后访问 `http://127.0.0.1:80`
服务器运行:部署后访问 `http://公网域名或IP:端口`
### 通用配置
+ `clear_memory_commands`: 对话内指令,主动清空前文记忆,字符串数组可自定义指令别名。
+ default: ["#清除记忆"]