mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-03 00:40:45 +08:00
claude_bot
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -7,7 +7,4 @@ chardet>=5.1.0
|
||||
Pillow
|
||||
pre-commit
|
||||
web.py
|
||||
<<<<<<< 827e8eddf87b73f310464e3d6c0509e5b6e2ba67
|
||||
=======
|
||||
curl_cffi
|
||||
>>>>>>> claude bot
|
||||
|
||||
Reference in New Issue
Block a user