Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片回复不会用 #52

Open
WhyPilotXia opened this issue Mar 12, 2024 · 3 comments
Open

图片回复不会用 #52

WhyPilotXia opened this issue Mar 12, 2024 · 3 comments
Assignees

Comments

@WhyPilotXia
Copy link

请问如何使用图片回复功能?
使用“问123答[图片]”机器人没反应
问123答456这种文字类的都行

@WhyPilotXia
Copy link
Author

已经自己修复,可能是由于不同端如shamrock,llnt传回数据不同
utils.py改一下即可
for msg_seg in msg:
if msg_seg.type == "image":
filename = msg_seg.data.get("file", "")
filename = os.path.basename(filename) #新增这行
if not filename:
continue
# 检查图片文件夹中有无同名文件

@kexue-z
Copy link
Owner

kexue-z commented Mar 14, 2024

需要适配,暂时没有精力。
欢迎pr

@WhyPilotXia
Copy link
Author

WhyPilotXia commented Mar 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants