This version is developed based on
acheong08的reChatGPT,
//新对话WEXIN_PROXY in data.ymlopenai api key , and you need to configure relevant parameters in data.yml#### What you need to prepare!!!!!!
docker port -p 6364:6364
-v /你自己创建的文件夹/config:/app/src/config
Dokerhub address selected as the latest version
Create a new config folder in the local directory. Create a new data.yml file under the folder, and fill in the following content:
OPENAI_ACCOUNT :
userA :
Api_key : xxxx
userB :
Api_key : xxxx
userC :
Api_key : xxxx
WEIXIN_RECEIVE :
Token : XXXX
EncodingAESKey : XXXX
CorpID : XXX
WEIXIN_PUSH :
agentid : XXX
secret : XXXX
corpid : XXX
WEXIN_PROXY : http://domain:port
# WEXIN_PROXY为可选配置,配置登录微信推送所用的ip,企业bot可信ip里填的,VPS部署用户用不到可以删除
BALANCE :
CKBALANCE : true
SYSTEM_PROMPT : 你的名字是呆瓜, 一个无所不能的大型语言模型The first item: OPENAI_ACCOUNT where userA, userB, userC is changed to enterprise WeChat user account, Api_key may have problems using one of the Api_key.
The second item: WEIXIN_RECEIVE is the corresponding enterprise WeChat self-built robot api, with the purpose of receiving messages sent by users. CorpID is the enterprise id of the personal enterprise WeChat. First fill in the three required parameters for the callback. Finally, docker runs and then enter the url of the enterprise WeChat image below. Then save it. Fill in https:你的域名:端口/api , configure the enterprise WeChat API to receive messages, and obtain the required data.
The third item: WEIXIN_PUSH is used to return to the user to chatgpt to process the user's answer after sending a message. agentid and secret are the ids and secrets of the bots built by the enterprise WeChat, respectively. corpid is still the enterprise id. Get the data tutorial to fill in //////////////
Item 4: WEXIN_PROXY is used to configure enterprise WeChat agents. (Users deploying vps do not need it, WEXIN_PROXY (can be deleted if you cannot use it). Since it is an openai API, it is also walled, so it is still non-vps users. For example, for agents to build http agents or sock agents, please make good use of search. If the environment agent is configured, WEXIN_PROXY item can be deleted.
Configure the proxy and trusted ip reference (vps users also need to add a trusted ip vps ip on the enterprise WeChat, and there is no need for a WEXIN_PROXY proxy): As shown in the figure, my http proxy is http://127.0.0.1:223 . The corresponding server ip is 54.xxx.xxx.xxx .
Project 5: You can query the usage information of the API key in data.yml. The default is to the off state and need to be configured in data.yml.
BALANCE :
CKBALANCE : true true is on, false is off, after opening, enter yourdomin:port/balance in the browser. For example, mine is http://127.0.0.1:6364/balance
Project 6: System_prompt can be customized, as optional configuration, this item can be deleted if you do not need it, for example
SYSTEM_PROMPT : 你的名字是呆瓜, 一个无所不能的大型语言模型Clear context command, WeChat user input //新对话