diff --git a/api/core/tools/custom_tool/tool.py b/api/core/tools/custom_tool/tool.py index 49966f8010..a847053cfb 100644 --- a/api/core/tools/custom_tool/tool.py +++ b/api/core/tools/custom_tool/tool.py @@ -217,7 +217,8 @@ class ApiTool(Tool): else: body = body - # if there is a file upload, remove the Content-Type header so that httpx can automatically generate the boundary header required for multipart/form-data. + # if there is a file upload, remove the Content-Type header + # so that httpx can automatically generate the boundary header required for multipart/form-data. # issue: https://github.com/langgenius/dify/issues/13684 # reference: https://stackoverflow.com/questions/39280438/fetch-missing-boundary-in-multipart-form-data-post if files: