UNPKG

@gluneau/n8n-nodes-venice

Version:

Venice.ai integration for n8n

83 lines 2.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VeniceAi = void 0; class VeniceAi { 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', }, codex: { categories: ['AI'], subcategories: { AI: ['Language Models', 'Root Nodes'], 'Language Models': ['Chat Models (Recommended)'], }, }, 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.VeniceAi = VeniceAi; //# sourceMappingURL=VeniceAi.node.js.map