mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Update LLM applications building support (no-changelog) (#7418)
extracted out of #7336 --------- Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: OlegIvaniv <me@olegivaniv.com> Co-authored-by: Jan Oberhauser <janober@users.noreply.github.com> Co-authored-by: Val <68596159+valya@users.noreply.github.com> Co-authored-by: Alex Grozav <alex@grozav.com> Co-authored-by: Deborah <deborah@starfallprojects.co.uk> Co-authored-by: Jesper Bylund <mail@jesperbylund.com> Co-authored-by: Jon <jonathan.bennetts@gmail.com>
This commit is contained in:
committed by
GitHub
parent
34f3f8001e
commit
91dfc4d513
@@ -2211,6 +2211,7 @@ export default defineComponent({
|
||||
if (lastSelectedNodeEndpointUuid && !isAutoAdd) {
|
||||
const lastSelectedEndpoint = this.instance.getEndpoint(lastSelectedNodeEndpointUuid);
|
||||
if (
|
||||
lastSelectedEndpoint &&
|
||||
this.checkNodeConnectionAllowed(
|
||||
lastSelectedNode!,
|
||||
newNodeData,
|
||||
@@ -2382,7 +2383,14 @@ export default defineComponent({
|
||||
);
|
||||
|
||||
if (targetNodeType?.inputs?.length) {
|
||||
for (const input of targetNodeType?.inputs || []) {
|
||||
const workflow = this.getCurrentWorkflow();
|
||||
const workflowNode = workflow.getNode(targetNode.name);
|
||||
let inputs: Array<ConnectionTypes | INodeInputConfiguration> = [];
|
||||
if (targetNodeType) {
|
||||
inputs = NodeHelpers.getNodeInputs(workflow, workflowNode!, targetNodeType);
|
||||
}
|
||||
|
||||
for (const input of inputs || []) {
|
||||
if (typeof input === 'string' || input.type !== targetInfoType || !input.filter) {
|
||||
// No filters defined or wrong connection type
|
||||
continue;
|
||||
@@ -3356,7 +3364,6 @@ export default defineComponent({
|
||||
nodeConnections || [],
|
||||
(connectionType as ConnectionTypes) ?? NodeConnectionType.Main,
|
||||
);
|
||||
|
||||
Object.keys(outputMap).forEach((sourceOutputIndex: string) => {
|
||||
Object.keys(outputMap[sourceOutputIndex]).forEach((targetNodeName: string) => {
|
||||
Object.keys(outputMap[sourceOutputIndex][targetNodeName]).forEach(
|
||||
|
||||
Reference in New Issue
Block a user