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