From 84d385193645e16846dcdb169a4471f062be0e27 Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Mon, 12 May 2025 15:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=9F=90?= =?UTF-8?q?=E4=BA=9B=E5=8D=8F=E8=AE=AE=E7=AB=AF=E6=89=BE=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E5=9B=BE=E7=89=87url=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_llmchat/__init__.py b/nonebot_plugin_llmchat/__init__.py index b2021c2..8cb350a 100755 --- a/nonebot_plugin_llmchat/__init__.py +++ b/nonebot_plugin_llmchat/__init__.py @@ -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] 报错