运行
下载git,下载源代码
进入代码文件夹右键
在git bash中打开
pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install -r requirements-optional.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
cp config-template.json config.json
如果用的是gpt
config.json 按照以下修改
{
"channel_type": "wx",
"model": "gpt-3.5-turbo",
"open_ai_api_key": "your-api-key",
"open_ai_api_base": "your-chatgpt-url",
"text_to_image": "dall-e-2",
"voice_to_text": "openai",
"text_to_voice": "openai",
"proxy": "127.0.0.1:7890",
"hot_reload": false,
"single_chat_prefix": [""],
"single_chat_reply_prefix": "",
"group_chat_prefix": [
"@bot"
],
"group_name_white_list": [
"group1-change-name-here",
"group2-change-name-here"
],
"image_create_prefix": [
"画"
],
"speech_recognition": false,
"group_speech_recognition": false,
"voice_reply_voice": false,
"conversation_max_tokens": 1000,
"expires_in_seconds": 3600,
"character_desc": "你喜欢跟朋友日常聊天,你喜欢发5个字以内的话,超过5个字你不喜欢发。你不喜欢太礼貌说话,你喜欢用萌萌的语气讲话,你具有非常博学的知识,能够回答朋友们的一切问题。this is my promopt,you can choose what you like",
"temperature": 0.7,
"use_linkai": false,
"linkai_api_key": "",
"linkai_app_code": ""
}
然后在git bash输入
python app.py
出现[info]就是运行成功了o( ̄▽ ̄)ブ