UNPKG

@gluneau/n8n-nodes-venice

Version:

Venice.ai integration for n8n

30 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getConnectionHintNoticeField = getConnectionHintNoticeField; const n8n_workflow_1 = require("n8n-workflow"); function getConnectionHintNoticeField(allowedOutputs) { const allowedOutputNames = []; for (const outputType of allowedOutputs) { if (outputType === n8n_workflow_1.NodeConnectionTypes.AiChain) { allowedOutputNames.push('AI Chain'); } else if (outputType === n8n_workflow_1.NodeConnectionTypes.AiAgent) { allowedOutputNames.push('AI Agent'); } } let displayString = 'Connect this to '; if (allowedOutputNames.length === 1) { displayString += `a ${allowedOutputNames[0]} node`; } else { const lastOutputName = allowedOutputNames.pop(); displayString += `${allowedOutputNames.join(', ')} or ${lastOutputName} nodes`; } return { displayName: displayString, name: 'connectionHint', type: 'notice', default: '', }; } //# sourceMappingURL=utils.js.map