From ddbb263dce0fc458abc95d850217251bb49d2b83 Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:42:26 +0200 Subject: [PATCH] feat(AI Transform Node): Show warning for binary data (#11560) --- packages/nodes-base/nodes/AiTransform/AiTransform.node.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/nodes-base/nodes/AiTransform/AiTransform.node.ts b/packages/nodes-base/nodes/AiTransform/AiTransform.node.ts index 7d4cf0a223..bd3e677a2d 100644 --- a/packages/nodes-base/nodes/AiTransform/AiTransform.node.ts +++ b/packages/nodes-base/nodes/AiTransform/AiTransform.node.ts @@ -31,6 +31,14 @@ export class AiTransform implements INodeType { inputs: [NodeConnectionType.Main], outputs: [NodeConnectionType.Main], parameterPane: 'wide', + hints: [ + { + message: + "This node doesn't have access to the contents of binary files. To use those contents here, use the 'Extract from File' node first.", + displayCondition: '={{ $input.all().some(i => i.binary) }}', + location: 'outputPane', + }, + ], properties: [ { displayName: 'Instructions',