新增飞书应用通道

- 支持自建机器人的私聊和群聊
 - 支持图片生成
 - 支持文件总结
This commit is contained in:
Saboteur7
2023-11-21 22:41:54 +08:00
parent 061d8a3a5f
commit 86a58c3d80
8 changed files with 371 additions and 6 deletions

8
utils/file_util.py Normal file
View File

@@ -0,0 +1,8 @@
from urllib.parse import urlparse
import os
# 获取url后缀
def get_path_suffix(path):
path = urlparse(path).path
return os.path.splitext(path)[-1].lstrip('.')