mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 13:47:15 +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))
|
reply = Reply(ReplyType.ERROR, "Bot不支持处理{}类型的消息".format(context.type))
|
||||||
return reply
|
return reply
|
||||||
|
|
||||||
<<<<<<< 827e8eddf87b73f310464e3d6c0509e5b6e2ba67
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> claude bot
|
|
||||||
def reply_text(self, session: ChatGPTSession, api_key=None, args=None, retry_count=0) -> dict:
|
def reply_text(self, session: ChatGPTSession, api_key=None, args=None, retry_count=0) -> dict:
|
||||||
"""
|
"""
|
||||||
call openai's ChatCompletion to get the answer
|
call openai's ChatCompletion to get the answer
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ BAIDU = "baidu"
|
|||||||
XUNFEI = "xunfei"
|
XUNFEI = "xunfei"
|
||||||
CHATGPTONAZURE = "chatGPTOnAzure"
|
CHATGPTONAZURE = "chatGPTOnAzure"
|
||||||
LINKAI = "linkai"
|
LINKAI = "linkai"
|
||||||
|
|
||||||
VERSION = "1.3.0"
|
VERSION = "1.3.0"
|
||||||
|
|
||||||
MODEL_LIST = ["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "wenxin", "xunfei"]
|
MODEL_LIST = ["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "wenxin", "xunfei"]
|
||||||
CLAUDEAI = "claude"
|
CLAUDEAI = "claude"
|
||||||
VERSION = "1.3.0"
|
VERSION = "1.3.0"
|
||||||
|
|||||||
@@ -349,11 +349,8 @@ def upload_chunk_file(core, fileDir, fileSymbol, fileSize,
|
|||||||
('id', (None, 'WU_FILE_0')),
|
('id', (None, 'WU_FILE_0')),
|
||||||
('name', (None, fileName)),
|
('name', (None, fileName)),
|
||||||
('type', (None, fileType)),
|
('type', (None, fileType)),
|
||||||
<<<<<<< 827e8eddf87b73f310464e3d6c0509e5b6e2ba67
|
|
||||||
('lastModifiedDate', (None, time.strftime('%a %b %d %Y %H:%M:%S GMT+0800 (CST)'))),
|
('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)'))),
|
('lastModifiedDate', (None, time.strftime('%a %b %claude_ai_bot.py%Y %H:%M:%S GMT+0800 (CST)'))),
|
||||||
>>>>>>> claude bot
|
|
||||||
('size', (None, str(fileSize))),
|
('size', (None, str(fileSize))),
|
||||||
('chunks', (None, None)),
|
('chunks', (None, None)),
|
||||||
('chunk', (None, None)),
|
('chunk', (None, None)),
|
||||||
|
|||||||
@@ -7,7 +7,4 @@ chardet>=5.1.0
|
|||||||
Pillow
|
Pillow
|
||||||
pre-commit
|
pre-commit
|
||||||
web.py
|
web.py
|
||||||
<<<<<<< 827e8eddf87b73f310464e3d6c0509e5b6e2ba67
|
|
||||||
=======
|
|
||||||
curl_cffi
|
curl_cffi
|
||||||
>>>>>>> claude bot
|
|
||||||
|
|||||||
Reference in New Issue
Block a user