mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
39 lines
782 B
TypeScript
39 lines
782 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
import * as complete from './complete.operation';
|
|
import { sendErrorPostReceive } from '../../GenericFunctions';
|
|
|
|
export const description: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['chat'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Message a Model',
|
|
value: 'complete',
|
|
action: 'Message a model',
|
|
description: 'Create one or more completions for a given text',
|
|
routing: {
|
|
request: {
|
|
method: 'POST',
|
|
url: '/chat/completions',
|
|
},
|
|
output: {
|
|
postReceive: [sendErrorPostReceive],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
default: 'complete',
|
|
},
|
|
|
|
...complete.description,
|
|
];
|