mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(OpenAI Node): Add support for ChatGPT (#5596)
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user