mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(OpenAI Node): Overhaul (#8335)
This commit is contained in:
@@ -2,11 +2,13 @@ import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||
import { imageFields, imageOperations } from './ImageDescription';
|
||||
import { textFields, textOperations } from './TextDescription';
|
||||
import { chatFields, chatOperations } from './ChatDescription';
|
||||
import { oldVersionNotice } from '../../utils/descriptions';
|
||||
|
||||
export class OpenAi implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'OpenAI',
|
||||
name: 'openAi',
|
||||
hidden: true,
|
||||
icon: 'file:openAi.svg',
|
||||
group: ['transform'],
|
||||
version: [1, 1.1],
|
||||
@@ -28,13 +30,7 @@ export class OpenAi implements INodeType {
|
||||
baseURL: 'https://api.openai.com',
|
||||
},
|
||||
properties: [
|
||||
{
|
||||
displayName:
|
||||
'For more advanced uses, consider using an <a data-action="openSelectiveNodeCreator" data-action-parameter-creatorview="AI">advanced AI</a> node',
|
||||
name: 'noticeAdvanceAi',
|
||||
type: 'notice',
|
||||
default: '',
|
||||
},
|
||||
oldVersionNotice,
|
||||
{
|
||||
displayName: 'Resource',
|
||||
name: 'resource',
|
||||
|
||||
Reference in New Issue
Block a user