fix: image num limit

This commit is contained in:
zhayujie
2024-01-25 15:34:59 +08:00
parent 7729e66a96
commit 9e281d20ab
2 changed files with 5 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ SaaS服务、私有化部署、稳定托管接入 等多种模式。
>
> 目前已在私域运营、智能客服、企业效率助手等场景积累了丰富的 AI 解决方案, 在电商、文教、健康、新消费等各行业沉淀了 AI 落地的最佳实践,致力于打造助力中小企业拥抱 AI 的一站式平台。
企业服务和商咨询可联系产品顾问:
企业服务和商咨询可联系产品顾问:
<img width="240" src="https://img-1317903499.cos.ap-guangzhou.myqcloud.com/docs/product-manager-qrcode.jpg">

View File

@@ -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"):