@watzon/n8n-nodes-perplexity
Version:
n8n node to interact with the Perplexity AI API
34 lines • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PerplexityApi = void 0;
class PerplexityApi {
constructor() {
this.name = 'perplexityApi';
this.displayName = 'Perplexity API';
this.documentationUrl = 'https://docs.perplexity.ai/';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: 'Your Perplexity API key',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.apiKey}}',
'Content-Type': 'application/json',
},
},
};
}
}
exports.PerplexityApi = PerplexityApi;
//# sourceMappingURL=PerplexityApi.credentials.js.map