From 3c2b2d9f4aad3c904de4e4c6a4d8a3ba2bcda339 Mon Sep 17 00:00:00 2001 From: zcr Date: Fri, 20 Mar 2026 17:24:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E8=A7=86=E8=A7=89=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=202.=E6=96=B0=E5=A2=9E=E5=AF=B9=E4=B8=8A=E6=AC=A1?= =?UTF-8?q?=E5=9B=BE=E7=89=87=20=E6=88=96=20=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=20=E5=BC=95=E7=94=A8=E5=9B=BE=E7=89=87=E5=81=9A?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E8=83=BD=E5=8A=9B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/deep_agent_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routers/deep_agent_chat.py b/src/routers/deep_agent_chat.py index 704f2f6..e4881f9 100644 --- a/src/routers/deep_agent_chat.py +++ b/src/routers/deep_agent_chat.py @@ -148,7 +148,7 @@ async def chat_stream(request: DeepAgentChatRequest): files["input_image"].append(path) # 用户引用图片 - if len(request.quote_image_path): + if request.quote_image_path: bucket, object_name = request.quote_image_path.split('/', 1) image_url = get_presigned_url(oss_client=minio_client, bucket=bucket, object_name=object_name) content.append({"type": "image_url", "image_url": {"url": image_url}})