@gluneau/n8n-nodes-venice
Version:
Venice.ai integration for n8n
76 lines • 2.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Venice = void 0;
class Venice {
description = {
displayName: 'Venice AI',
name: 'veniceAi',
icon: 'file:venice.svg',
group: ['transform'],
version: 1,
description: 'Use Venice.ai AI models for text, image, and audio generation',
defaults: {
name: 'Venice AI',
},
inputs: ['main'],
outputs: ['main'],
credentials: [
{
name: 'veniceApi',
required: true,
},
],
requestDefaults: {
baseURL: 'https://api.venice.ai/api/v1',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
},
subtitle: 'Connect to Venice.ai models and tools',
inputNames: ['Input'],
outputNames: ['Output'],
properties: [
{
displayName: 'Connection Type',
name: 'connectionType',
type: 'options',
options: [
{
name: 'Chat Model',
value: 'chatModel',
description: 'Generate text completions with Venice.ai models',
},
{
name: 'Image Generation',
value: 'imageGeneration',
description: 'Create and modify images with Venice.ai models',
},
{
name: 'Text to Speech',
value: 'textToSpeech',
description: 'Convert text to spoken audio',
},
{
name: 'Embeddings',
value: 'embeddings',
description: 'Generate vector embeddings from text',
},
],
default: 'chatModel',
description: 'The type of Venice.ai service to connect to',
},
{
displayName: 'API Reference',
name: 'apiReference',
type: 'notice',
default: 'Access the <a href="https://docs.venice.ai" target="_blank">Venice.ai API docs</a> for more information.',
},
],
};
async execute() {
return [this.getInputData()];
}
}
exports.Venice = Venice;
//# sourceMappingURL=Venice.node.js.map