mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-04-05 10:38:15 +08:00
新增飞书应用通道
- 支持自建机器人的私聊和群聊 - 支持图片生成 - 支持文件总结
This commit is contained in:
8
utils/file_util.py
Normal file
8
utils/file_util.py
Normal 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('.')
|
||||
Reference in New Issue
Block a user