mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Replace ai nodes enum strings with hard-coded values (no-changelog) (#14091)
This commit is contained in:
@@ -25,11 +25,11 @@ function getInputs(parameters: IDataObject) {
|
||||
const chunkingMode = parameters?.chunkingMode;
|
||||
const operationMode = parameters?.operationMode;
|
||||
const inputs = [
|
||||
{ displayName: '', type: NodeConnectionType.Main },
|
||||
{ displayName: '', type: 'main' },
|
||||
{
|
||||
displayName: 'Model',
|
||||
maxConnections: 1,
|
||||
type: NodeConnectionType.AiLanguageModel,
|
||||
type: 'ai_languageModel',
|
||||
required: true,
|
||||
},
|
||||
];
|
||||
@@ -37,7 +37,7 @@ function getInputs(parameters: IDataObject) {
|
||||
if (operationMode === 'documentLoader') {
|
||||
inputs.push({
|
||||
displayName: 'Document',
|
||||
type: NodeConnectionType.AiDocument,
|
||||
type: 'ai_document',
|
||||
required: true,
|
||||
maxConnections: 1,
|
||||
});
|
||||
@@ -47,7 +47,7 @@ function getInputs(parameters: IDataObject) {
|
||||
if (chunkingMode === 'advanced') {
|
||||
inputs.push({
|
||||
displayName: 'Text Splitter',
|
||||
type: NodeConnectionType.AiTextSplitter,
|
||||
type: 'ai_textSplitter',
|
||||
required: false,
|
||||
maxConnections: 1,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user