mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2025-09-04 10:20:45 +00:00
🐛 修复某些协议端找不到图片url的问题
This commit is contained in:
parent
ee2a045116
commit
84d3851936
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ async def process_images(event: GroupMessageEvent) -> list[str]:
|
|||
base64_images = []
|
||||
for segement in event.get_message():
|
||||
if segement.type == "image":
|
||||
image_url = segement.data.get("url")
|
||||
image_url = segement.data.get("url") or segement.data.get("file")
|
||||
if image_url:
|
||||
try:
|
||||
# 处理高版本 httpx 的 [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] 报错
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue