n8n/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/OpenAi.node.ts
2024-02-15 10:15:58 +02:00

18 lines
437 B
TypeScript

import type { IExecuteFunctions, INodeType } from 'n8n-workflow';
import { router } from './actions/router';
import { versionDescription } from './actions/versionDescription';
import { listSearch, loadOptions } from './methods';
export class OpenAi implements INodeType {
description = versionDescription;
methods = {
listSearch,
loadOptions,
};
async execute(this: IExecuteFunctions) {
return await router.call(this);
}
}