UNPKG

n8n-nodes-sambanova

Version:

External n8n node to use SambaNova's chat model via their API

36 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SambaNovaApi = void 0; class SambaNovaApi { constructor() { this.name = 'sambanovaApi'; this.displayName = 'SambaNova API'; this.documentationUrl = 'https://cloud.sambanova.ai/?utm_source=n8n&utm_medium=external&utm_campaign=cloud_signup'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, required: true, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: 'https://api.sambanova.ai/v1', url: '/models', }, }; } } exports.SambaNovaApi = SambaNovaApi; //# sourceMappingURL=SambaNovaApi.credentials.js.map