Pārlūkot izejas kodu

chore: update requirements and config-template

master
lanvent pirms 1 gada
vecāks
revīzija
6bd1242d43
5 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. +1
    -1
      bridge/bridge.py
  2. +2
    -0
      channel/wechat/wechat_channel.py
  3. +0
    -1
      config-template.json
  4. +1
    -1
      requirements-optional.txt
  5. +1
    -1
      requirements.txt

+ 1
- 1
bridge/bridge.py Parādīt failu

@@ -19,7 +19,7 @@ class Bridge(object):
model_type = conf().get("model")
if model_type in ["text-davinci-003"]:
self.btype['chat'] = const.OPEN_AI
if conf().get("use_azure_chatgpt"):
if conf().get("use_azure_chatgpt", False):
self.btype['chat'] = const.CHATGPTONAZURE
self.bots={}



+ 2
- 0
channel/wechat/wechat_channel.py Parādīt failu

@@ -147,6 +147,8 @@ class WechatChannel(ChatChannel):
if conf().get('speech_recognition') != True:
return
logger.debug("[WX]receive voice for group msg: {}".format(cmsg.content))
elif cmsg.ctype == ContextType.IMAGE:
logger.debug("[WX]receive image for group msg: {}".format(cmsg.content))
else:
# logger.debug("[WX]receive group msg: {}, cmsg={}".format(json.dumps(cmsg._rawmsg, ensure_ascii=False), cmsg))
pass


+ 0
- 1
config-template.json Parādīt failu

@@ -2,7 +2,6 @@
"open_ai_api_key": "YOUR API KEY",
"model": "gpt-3.5-turbo",
"proxy": "",
"use_azure_chatgpt": false,
"single_chat_prefix": ["bot", "@bot"],
"single_chat_reply_prefix": "[bot] ",
"group_chat_prefix": ["@bot"],


+ 1
- 1
requirements-optional.txt Parādīt failu

@@ -21,4 +21,4 @@ web.py

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

+ 1
- 1
requirements.txt Parādīt failu

@@ -1,4 +1,4 @@
openai>=0.27.2
openai==0.27.2
HTMLParser>=0.0.2
PyQRCode>=1.2.1
qrcode>=7.4.2


Notiek ielāde…
Atcelt
Saglabāt