Skip to content

Commit 6bd1242

Browse files
committed
chore: update requirements and config-template
1 parent 8779eab commit 6bd1242

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

bridge/bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self):
1919
model_type = conf().get("model")
2020
if model_type in ["text-davinci-003"]:
2121
self.btype['chat'] = const.OPEN_AI
22-
if conf().get("use_azure_chatgpt"):
22+
if conf().get("use_azure_chatgpt", False):
2323
self.btype['chat'] = const.CHATGPTONAZURE
2424
self.bots={}
2525

channel/wechat/wechat_channel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def handle_group(self, cmsg : ChatMessage):
147147
if conf().get('speech_recognition') != True:
148148
return
149149
logger.debug("[WX]receive voice for group msg: {}".format(cmsg.content))
150+
elif cmsg.ctype == ContextType.IMAGE:
151+
logger.debug("[WX]receive image for group msg: {}".format(cmsg.content))
150152
else:
151153
# logger.debug("[WX]receive group msg: {}, cmsg={}".format(json.dumps(cmsg._rawmsg, ensure_ascii=False), cmsg))
152154
pass

config-template.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"open_ai_api_key": "YOUR API KEY",
33
"model": "gpt-3.5-turbo",
44
"proxy": "",
5-
"use_azure_chatgpt": false,
65
"single_chat_prefix": ["bot", "@bot"],
76
"single_chat_reply_prefix": "[bot] ",
87
"group_chat_prefix": ["@bot"],

requirements-optional.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ web.py
2121

2222
# chatgpt-tool-hub plugin
2323
--extra-index-url https://pypi.python.org/simple
24-
chatgpt_tool_hub>=0.3.5
24+
chatgpt_tool_hub>=0.3.7

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openai>=0.27.2
1+
openai==0.27.2
22
HTMLParser>=0.0.2
33
PyQRCode>=1.2.1
44
qrcode>=7.4.2

0 commit comments

Comments
 (0)