n8n-nodes-smartgent
Version:
SmartGent custom nodes for n8n - AI-powered automation and intelligent workflow integrations including LiteLLM chat completions
46 lines • 1.52 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SmartGentLiteLlmApi = void 0;
class SmartGentLiteLlmApi {
constructor() {
this.name = 'smartGentLiteLlmApi';
this.displayName = 'SmartGent LiteLLM API';
this.documentationUrl = 'https://docs.smartgent.ai/api';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
description: 'Your SmartGent LiteLLM API key (Bearer token)',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: 'https://litellm.smartgen.w3btest.com',
required: true,
description: 'The base URL for SmartGent LiteLLM API',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'Authorization': '=Bearer {{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: '={{$credentials.baseUrl}}',
url: '/v1/models',
method: 'GET',
},
};
}
}
exports.SmartGentLiteLlmApi = SmartGentLiteLlmApi;
//# sourceMappingURL=SmartGentLiteLlmApi.credentials.js.map