Browse Source

claude_bot

master
resphinas 1 year ago
parent
commit
44cc4165d1
4 changed files with 2 additions and 9 deletions
  1. +0
    -3
      bot/chatgpt/chat_gpt_bot.py
  2. +2
    -0
      common/const.py
  3. +0
    -3
      lib/itchat/async_components/messages.py
  4. +0
    -3
      requirements.txt

+ 0
- 3
bot/chatgpt/chat_gpt_bot.py View File

@@ -106,10 +106,7 @@ class ChatGPTBot(Bot, OpenAIImage):
reply = Reply(ReplyType.ERROR, "Bot不支持处理{}类型的消息".format(context.type))
return reply

<<<<<<< 827e8eddf87b73f310464e3d6c0509e5b6e2ba67
=======

>>>>>>> claude bot
def reply_text(self, session: ChatGPTSession, api_key=None, args=None, retry_count=0) -> dict:
"""
call openai's ChatCompletion to get the answer


+ 2
- 0
common/const.py View File

@@ -5,7 +5,9 @@ BAIDU = "baidu"
XUNFEI = "xunfei"
CHATGPTONAZURE = "chatGPTOnAzure"
LINKAI = "linkai"

VERSION = "1.3.0"

MODEL_LIST = ["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "wenxin", "xunfei"]
CLAUDEAI = "claude"
VERSION = "1.3.0"


+ 0
- 3
lib/itchat/async_components/messages.py View File

@@ -349,11 +349,8 @@ def upload_chunk_file(core, fileDir, fileSymbol, fileSize,
('id', (None, 'WU_FILE_0')),
('name', (None, fileName)),
('type', (None, fileType)),
<<<<<<< 827e8eddf87b73f310464e3d6c0509e5b6e2ba67
('lastModifiedDate', (None, time.strftime('%a %b %d %Y %H:%M:%S GMT+0800 (CST)'))),
=======
('lastModifiedDate', (None, time.strftime('%a %b %claude_ai_bot.py%Y %H:%M:%S GMT+0800 (CST)'))),
>>>>>>> claude bot
('size', (None, str(fileSize))),
('chunks', (None, None)),
('chunk', (None, None)),


+ 0
- 3
requirements.txt View File

@@ -7,7 +7,4 @@ chardet>=5.1.0
Pillow
pre-commit
web.py
<<<<<<< 827e8eddf87b73f310464e3d6c0509e5b6e2ba67
=======
curl_cffi
>>>>>>> claude bot

Loading…
Cancel
Save