From c364f7c64363cd3b3783091361fc0d33de9901e3 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 17 Mar 2025 23:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20Dify=20=E4=B8=8B?= =?UTF-8?q?=E5=BD=93=E5=8F=AA=E6=9C=89=E5=9B=BE=E7=89=87=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E9=BB=98=E8=AE=A4=20prompt=20#837?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/provider/sources/dify_source.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/astrbot/core/provider/sources/dify_source.py b/astrbot/core/provider/sources/dify_source.py index 9af198aa7..e4cc76263 100644 --- a/astrbot/core/provider/sources/dify_source.py +++ b/astrbot/core/provider/sources/dify_source.py @@ -99,6 +99,9 @@ class ProviderDify(Provider): try: match self.api_type: case "chat" | "agent": + if not prompt: + prompt = "请描述这张图片。" + async for chunk in self.api_client.chat_messages( inputs={ **payload_vars,