n8n-nodes-groq-speech
Version:
N8N Community Node for Groq Text-to-Speech API integration
37 lines (36 loc) • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GroqApi = void 0;
class GroqApi {
constructor() {
this.name = 'groqApi';
this.displayName = 'Groq API';
this.documentationUrl = 'https://console.groq.com/docs/quickstart';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
description: 'Your Groq API key from https://console.groq.com/keys',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: 'https://api.groq.com/openai/v1',
url: '/models',
},
};
}
}
exports.GroqApi = GroqApi;