From 8a585607c1aacad143c9b4c1a9c5b82c0a8d2012 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 27 Aug 2025 18:07:21 +0800 Subject: [PATCH] fix: tool schem not right --- web/app/components/workflow/nodes/tool/default.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/tool/default.ts b/web/app/components/workflow/nodes/tool/default.ts index f201147f5a..410aae3bbf 100644 --- a/web/app/components/workflow/nodes/tool/default.ts +++ b/web/app/components/workflow/nodes/tool/default.ts @@ -97,7 +97,7 @@ const nodeDefault: NodeDefault = { Object.keys(output_schema.properties).forEach((outputKey) => { const output = output_schema.properties[outputKey] const dataType = output.type - const schemaType = getMatchedSchemaType?.(output.value) + const schemaType = getMatchedSchemaType?.(output) let type = dataType === 'array' ? `array[${output.items?.type.slice(0, 1).toLocaleLowerCase()}${output.items?.type.slice(1)}]` : `${output.type.slice(0, 1).toLocaleLowerCase()}${output.type.slice(1)}`