1、新建文件
2、寫入下面內容
- version: '2.0'
- services:
- chatgpt-on-wechat:
- image: zhayujie/chatgpt-on-wechat
- container_name: chatgpt-on-wechat
- security_opt:
- - seccomp:unconfined
- environment:
- OPEN_AI_API_KEY: 'sk-00000000000000000000000000000000000000' # 填入上面創建的 OpenAI API KEY
- OPEN_AI_API_BASE: 'https://api.openai.com/v1' # 國內填寫自己反代地址
- MODEL: 'gpt-3.5-turbo'
- PROXY: ''
- SINGLE_CHAT_PREFIX: '["bot", "@Smart"]'
- SINGLE_CHAT_REPLY_PREFIX: '"[bot] "'
- GROUP_CHAT_PREFIX: '["@bot"]' # 群聊時包含該前綴則會觸發機器人回覆
- GROUP_NAME_WHITE_LIST: '["HKUST", "ChatGPT Test Group 2"]' # 開啟自動回覆的群名稱列表
- IMAGE_CREATE_PREFIX: '["draw", "look", "find"]'
- CONVERSATION_MAX_TOKENS: 1000
- SPEECH_RECOGNITION: 'False'
- CHARACTER_DESC: You're ChatGPT, a large language model trained by OpenAI, and you're designed to answer and solve any question people have and can communicate with people in multiple languages. '
- EXPIRES_IN_SECONDS: 3600
- USE_LINKAI: 'False'
- LINKAI_API_KEY: ''
- LINKAI_APP_CODE: ''
複製代碼 3、啟動相應的鏡像
4、執行這個,用你小號掃碼登陸即可
- docker logs -f chatgpt-on-wechat
複製代碼 需要準備:一臺服務器(國內和國外都行)、裝好docker docker-compose、 chatgpt的賬號(論壇一堆人賣)
|