diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 648b2bc9a..459ff622a 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -928,8 +928,8 @@ CONFIG_METADATA_2 = { "dify_api_type": { "description": "Dify 应用类型", "type": "string", - "hint": "Dify API 类型。根据 Dify 官网,目前支持 chat, agent, workflow 三种应用类型", - "options": ["chat", "agent", "workflow"], + "hint": "Dify API 类型。根据 Dify 官网,目前支持 chat, chatflow, agent, workflow 三种应用类型。", + "options": ["chat", "chatflow", "agent", "workflow"], }, "dify_workflow_output_key": { "description": "Dify Workflow 输出变量名", diff --git a/astrbot/core/provider/sources/dify_source.py b/astrbot/core/provider/sources/dify_source.py index 1adb0f884..78e3760c1 100644 --- a/astrbot/core/provider/sources/dify_source.py +++ b/astrbot/core/provider/sources/dify_source.py @@ -102,7 +102,7 @@ class ProviderDify(Provider): try: match self.api_type: - case "chat" | "agent": + case "chat" | "agent" | "chatflow": if not prompt: prompt = "请描述这张图片。"