From 581eaf2befb4a977654026ccc1b41cf3ca549045 Mon Sep 17 00:00:00 2001 From: Xun Cai Date: Sat, 25 Mar 2023 16:21:15 +1100 Subject: [PATCH] update document --- README.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 07379f3..55b63e1 100644 --- a/README.md +++ b/README.md @@ -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: ["#清除记忆"]