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) (#7710)
extracted out of #7336 --------- Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: Oleg Ivaniv <me@olegivaniv.com> Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
committed by
GitHub
parent
4a89504d54
commit
117962d473
@@ -162,7 +162,7 @@ function onBackButton() {
|
||||
v-if="activeViewStack.info && !activeViewStack.search"
|
||||
:class="$style.info"
|
||||
:content="activeViewStack.info"
|
||||
theme="info"
|
||||
theme="warning"
|
||||
/>
|
||||
<!-- Actions mode -->
|
||||
<ActionsRenderer v-if="isActionsMode && activeViewStack.subcategory" v-bind="$attrs" />
|
||||
|
||||
@@ -8,6 +8,7 @@ import type {
|
||||
SimplifiedNodeType,
|
||||
} from '@/Interface';
|
||||
import {
|
||||
AI_CODE_NODE_TYPE,
|
||||
AI_OTHERS_NODE_CREATOR_VIEW,
|
||||
DEFAULT_SUBCATEGORY,
|
||||
TRIGGER_NODE_CREATOR_VIEW,
|
||||
@@ -152,6 +153,9 @@ export const useViewStacks = defineStore('nodeCreatorViewStacks', () => {
|
||||
},
|
||||
panelClass: relatedAIView?.properties.panelClass,
|
||||
baseFilter: (i: INodeCreateElement) => {
|
||||
// AI Code node could have any connection type so we don't want to display it
|
||||
// in the compatible connection view as it would be displayed in all of them
|
||||
if (i.key === AI_CODE_NODE_TYPE) return false;
|
||||
const displayNode = nodesByConnectionType[connectionType].includes(i.key);
|
||||
|
||||
// TODO: Filtering works currently fine for displaying compatible node when dropping
|
||||
|
||||
@@ -317,18 +317,6 @@ export function TriggerView(nodes: SimplifiedNodeType[]) {
|
||||
],
|
||||
};
|
||||
|
||||
const hasAINodes = (nodes ?? []).some((node) => node.codex?.categories?.includes(AI_SUBCATEGORY));
|
||||
if (hasAINodes)
|
||||
view.items.push({
|
||||
key: AI_NODE_CREATOR_VIEW,
|
||||
type: 'view',
|
||||
properties: {
|
||||
title: i18n.baseText('nodeCreator.aiPanel.langchainAiNodes'),
|
||||
icon: 'robot',
|
||||
description: i18n.baseText('nodeCreator.aiPanel.nodesForAi'),
|
||||
},
|
||||
});
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user