n8n-nodes-nemotron
Version:
n8n community node for integrating NVIDIA's Nemotron Ultra 253B AI model
46 lines • 1.47 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NvidiaApi = void 0;
class NvidiaApi {
constructor() {
this.name = 'nvidiaApi';
this.displayName = 'NVIDIA API';
this.documentationUrl = 'https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
required: true,
default: '',
description: 'The API key for NVIDIA NIM service',
},
{
displayName: 'Base URL',
name: 'url',
type: 'string',
required: true,
default: 'https://integrate.api.nvidia.com/v1',
description: 'The base URL for NVIDIA NIM API',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: '={{$credentials.url}}',
url: '/models',
method: 'GET',
},
};
}
}
exports.NvidiaApi = NvidiaApi;
//# sourceMappingURL=NvidiaApi.credentials.js.map