From 930fd436eac488cae12da75460e643b88f0f9521 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Mon, 26 Jun 2023 11:58:55 +0800 Subject: [PATCH] feat: modify docker-compose file to pull image from dockerhub --- config-template.json | 1 + docker/{docker-compose.yaml => docker-compose.yml} | 13 +++++++------ requirements.txt | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) rename docker/{docker-compose.yaml => docker-compose.yml} (74%) diff --git a/config-template.json b/config-template.json index e2a6def..ae930de 100644 --- a/config-template.json +++ b/config-template.json @@ -2,6 +2,7 @@ "open_ai_api_key": "YOUR API KEY", "model": "gpt-3.5-turbo", "proxy": "", + "hot_reload": false, "single_chat_prefix": [ "bot", "@bot" diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yml similarity index 74% rename from docker/docker-compose.yaml rename to docker/docker-compose.yml index 51ff2b9..76897a7 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yml @@ -1,13 +1,11 @@ version: '2.0' services: chatgpt-on-wechat: - build: - context: ./ - dockerfile: Dockerfile.alpine image: zhayujie/chatgpt-on-wechat - container_name: sample-chatgpt-on-wechat + container_name: chatgpt-on-wechat environment: OPEN_AI_API_KEY: 'YOUR API KEY' + MODEL: 'gpt-3.5-turbo' OPEN_AI_PROXY: '' SINGLE_CHAT_PREFIX: '["bot", "@bot"]' SINGLE_CHAT_REPLY_PREFIX: '"[bot] "' @@ -15,6 +13,9 @@ services: GROUP_NAME_WHITE_LIST: '["ChatGPT测试群", "ChatGPT测试群2"]' IMAGE_CREATE_PREFIX: '["画", "看", "找"]' CONVERSATION_MAX_TOKENS: 1000 - SPEECH_RECOGNITION: "False" + SPEECH_RECOGNITION: 'False' CHARACTER_DESC: '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。' - EXPIRES_IN_SECONDS: 3600 \ No newline at end of file + EXPIRES_IN_SECONDS: 3600 + USE_LINKAI: 'False' + LINKAI_API_KEY: '' + LINKAI_APP_CODE: '' diff --git a/requirements.txt b/requirements.txt index 91c1756..3f11ca7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -openai==0.27.2 +openai HTMLParser>=0.0.2 PyQRCode>=1.2.1 qrcode>=7.4.2