feat: optimize consumer thread pool

This commit is contained in:
zhayujie
2024-02-05 12:01:41 +08:00
parent 95708489c9
commit af5bc73dc0
7 changed files with 93 additions and 42 deletions

View File

@@ -400,7 +400,7 @@ class LinkAIBot(Bot):
i += 1
if url.endswith(".mp4"):
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") or url.endswith(".csv"):
reply_type = ReplyType.FILE
url = _download_file(url)
if not url: