feat(OpenAI Node): Add support for ChatGPT (#5596)

This commit is contained in:
Jon
2023-03-02 14:17:29 +00:00
committed by GitHub
parent 1f7b478920
commit 06c5ecbdf3
2 changed files with 321 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
import { imageFields, imageOperations } from './ImageDescription';
import { textFields, textOperations } from './TextDescription';
import { chatFields, chatOperations } from './ChatDescription';
export class OpenAi implements INodeType {
description: INodeTypeDescription = {
@@ -32,6 +33,10 @@ export class OpenAi implements INodeType {
type: 'options',
noDataExpression: true,
options: [
{
name: 'Chat',
value: 'chat',
},
{
name: 'Image',
value: 'image',
@@ -44,6 +49,9 @@ export class OpenAi implements INodeType {
default: 'text',
},
...chatOperations,
...chatFields,
...imageOperations,
...imageFields,