mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 21:57:14 +08:00
Update chat_channel.py to support ReplyType.FILE
This commit is contained in:
@@ -241,7 +241,7 @@ class ChatChannel(Channel):
|
|||||||
reply.content = reply_text
|
reply.content = reply_text
|
||||||
elif reply.type == ReplyType.ERROR or reply.type == ReplyType.INFO:
|
elif reply.type == ReplyType.ERROR or reply.type == ReplyType.INFO:
|
||||||
reply.content = "[" + str(reply.type) + "]\n" + reply.content
|
reply.content = "[" + str(reply.type) + "]\n" + reply.content
|
||||||
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE:
|
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE or reply.type == ReplyType.FILE:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
logger.error("[WX] unknown reply type: {}".format(reply.type))
|
logger.error("[WX] unknown reply type: {}".format(reply.type))
|
||||||
|
|||||||
Reference in New Issue
Block a user