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
@@ -233,13 +233,17 @@ export default defineComponent({
|
||||
return this.readOnly || this.hasForeignCredential;
|
||||
},
|
||||
isExecutable(): boolean {
|
||||
if (
|
||||
this.nodeType &&
|
||||
!this.isTriggerNode &&
|
||||
!this.nodeType.inputs.includes(NodeConnectionType.Main)
|
||||
) {
|
||||
return false;
|
||||
if (this.nodeType && this.node) {
|
||||
const workflow = this.workflowsStore.getCurrentWorkflow();
|
||||
const workflowNode = workflow.getNode(this.node.name);
|
||||
const inputs = NodeHelpers.getNodeInputs(workflow, workflowNode!, this.nodeType!);
|
||||
const inputNames = NodeHelpers.getConnectionTypes(inputs);
|
||||
|
||||
if (!inputNames.includes(NodeConnectionType.Main) && !this.isTriggerNode) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return this.executable || this.hasForeignCredential;
|
||||
},
|
||||
nodeTypeName(): string {
|
||||
|
||||
Reference in New Issue
Block a user