mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 21:57:14 +08:00
fix: image num limit
This commit is contained in:
@@ -387,7 +387,11 @@ class LinkAIBot(Bot):
|
||||
if not image_urls:
|
||||
return
|
||||
try:
|
||||
i = 0
|
||||
for url in image_urls:
|
||||
if i >= 2:
|
||||
continue
|
||||
i += 1
|
||||
if url.endswith(".mp4"):
|
||||
reply_type = ReplyType.VIDEO_URL
|
||||
elif url.endswith(".pdf") or url.endswith(".doc") or url.endswith(".docx"):
|
||||
|
||||
Reference in New Issue
Block a user