From 0a3072b6bb437bd8ff5dd46b70adeed85eb27584 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Mon, 20 Oct 2025 11:03:09 +0800 Subject: [PATCH 1/3] add log --- modules/tool/utils/uploadFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tool/utils/uploadFile.ts b/modules/tool/utils/uploadFile.ts index f74fbc58..b7644468 100644 --- a/modules/tool/utils/uploadFile.ts +++ b/modules/tool/utils/uploadFile.ts @@ -5,7 +5,7 @@ import { parentPort } from 'worker_threads'; export const uploadFile = async (data: FileInput) => { // 判断是否在 worker 线程中 const isWorkerThread = typeof parentPort !== 'undefined' && parentPort !== null; - + console.log(parentPort, isWorkerThread, 1111); if (isWorkerThread) { // 在 worker 线程中,通过 parentPort 发送消息 return new Promise((resolve, reject) => { From d494d8831ff9cde3d5e3b5e7fdd0a000911dfb95 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Mon, 20 Oct 2025 11:30:34 +0800 Subject: [PATCH 2/3] fix: upload file --- modules/tool/utils/uploadFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tool/utils/uploadFile.ts b/modules/tool/utils/uploadFile.ts index b7644468..f74fbc58 100644 --- a/modules/tool/utils/uploadFile.ts +++ b/modules/tool/utils/uploadFile.ts @@ -5,7 +5,7 @@ import { parentPort } from 'worker_threads'; export const uploadFile = async (data: FileInput) => { // 判断是否在 worker 线程中 const isWorkerThread = typeof parentPort !== 'undefined' && parentPort !== null; - console.log(parentPort, isWorkerThread, 1111); + if (isWorkerThread) { // 在 worker 线程中,通过 parentPort 发送消息 return new Promise((resolve, reject) => { From 1230a35a0190a919fa194c08237df7bf4619f0ba Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Mon, 20 Oct 2025 22:11:37 +0800 Subject: [PATCH 3/3] plugin --- modules/tool/packages/gptImage/children/imgEditing/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tool/packages/gptImage/children/imgEditing/config.ts b/modules/tool/packages/gptImage/children/imgEditing/config.ts index 3a47b9b8..8b951cca 100644 --- a/modules/tool/packages/gptImage/children/imgEditing/config.ts +++ b/modules/tool/packages/gptImage/children/imgEditing/config.ts @@ -22,7 +22,7 @@ export default defineTool({ key: 'image', label: '原始图片', toolDescription: 'The original image to be edited (URL or base64)', - renderTypeList: [FlowNodeInputTypeEnum.textarea, FlowNodeInputTypeEnum.reference], + renderTypeList: [FlowNodeInputTypeEnum.input, FlowNodeInputTypeEnum.reference], valueType: WorkflowIOValueTypeEnum.string, required: true, description: '要编辑的原始图片,支持图片URL或base64编码,文件大小需小于4MB'