mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Replace ai nodes enum strings with hard-coded values (no-changelog) (#14091)
This commit is contained in:
@@ -14,11 +14,11 @@ import { getTemplateNoticeField } from '@utils/sharedFields';
|
||||
*/
|
||||
export function getInputs(parameters: IDataObject) {
|
||||
const inputs = [
|
||||
{ displayName: '', type: NodeConnectionType.Main },
|
||||
{ displayName: '', type: 'main' },
|
||||
{
|
||||
displayName: 'Model',
|
||||
maxConnections: 1,
|
||||
type: NodeConnectionType.AiLanguageModel,
|
||||
type: 'ai_languageModel',
|
||||
required: true,
|
||||
},
|
||||
];
|
||||
@@ -29,7 +29,7 @@ export function getInputs(parameters: IDataObject) {
|
||||
if (hasOutputParser === undefined || hasOutputParser === true) {
|
||||
inputs.push({
|
||||
displayName: 'Output Parser',
|
||||
type: NodeConnectionType.AiOutputParser,
|
||||
type: 'ai_outputParser',
|
||||
maxConnections: 1,
|
||||
required: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user