fix: Replace ai nodes enum strings with hard-coded values (no-changelog) (#14091)

This commit is contained in:
Alex Grozav
2025-03-21 09:24:05 +02:00
committed by GitHub
parent cb5a803f9e
commit 49872fbbac
3 changed files with 15 additions and 17 deletions

View File

@@ -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,
});