From 583848e80370a2ff1c7345326d83648d893850ac Mon Sep 17 00:00:00 2001 From: iHeyTang Date: Wed, 20 Aug 2025 11:19:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AD=97=E6=AE=B5=E7=9A=84schema=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0contentMediaType=E5=B1=9E=E6=80=A7=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=89=B9=E5=AE=9A=E6=96=87=E4=BB=B6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workflow_service/comfy/comfy_workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow_service/comfy/comfy_workflow.py b/workflow_service/comfy/comfy_workflow.py index a556cf0..0c4db3e 100644 --- a/workflow_service/comfy/comfy_workflow.py +++ b/workflow_service/comfy/comfy_workflow.py @@ -409,7 +409,7 @@ def _generate_field_schema(input_field: dict) -> dict: ) elif field_type == "UploadFile": field_schema.update( - {"type": "string", "format": "binary", "description": "上传文件"} + {"type": "string", "format": "binary", "contentMediaType": "image/*", "description": "上传文件"} ) else: # string field_schema.update({"type": "string"})