mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(editor): Split Tools and Models into sub-sections (#10159)
This commit is contained in:
@@ -47,10 +47,18 @@ function getInputs(
|
||||
};
|
||||
|
||||
return inputs.map(({ type, filter }) => {
|
||||
const isModelType = type === NodeConnectionType.AiLanguageModel;
|
||||
let displayName = type in displayNames ? displayNames[type] : undefined;
|
||||
if (
|
||||
isModelType &&
|
||||
['openAiFunctionsAgent', 'toolsAgent', 'conversationalAgent'].includes(agent)
|
||||
) {
|
||||
displayName = 'Chat Model';
|
||||
}
|
||||
const input: INodeInputConfiguration = {
|
||||
type,
|
||||
displayName: type in displayNames ? displayNames[type] : undefined,
|
||||
required: type === NodeConnectionType.AiLanguageModel,
|
||||
displayName,
|
||||
required: isModelType,
|
||||
maxConnections: [NodeConnectionType.AiLanguageModel, NodeConnectionType.AiMemory].includes(
|
||||
type as NodeConnectionType,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user