feat(Perplexity Node): New node (#13604)

This commit is contained in:
Stanimira Rikova
2025-05-29 22:01:19 +03:00
committed by GitHub
parent 041ada1fd6
commit 6d3e6eef00
14 changed files with 988 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
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,
];