n8n-nodes-aimlapi
Version:
Custom n8n node for integrating with the AI/ML API platform (AIMLAPI) to interact with LLMs and multimodal AI models such as chat completion endpoints.
45 lines • 1.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AIMLApi = void 0;
class AIMLApi {
constructor() {
this.name = 'aimlApi';
this.displayName = 'AI/ML API';
this.documentationUrl = 'https://docs.aimlapi.com/?utm_source=n8n&utm_medium=github&utm_campaign=integration';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
required: true,
default: '',
},
{
displayName: 'Base URL',
name: 'url',
type: 'hidden',
default: 'https://api.aimlapi.com/v1',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: 'https://api.aimlapi.com',
url: '/assistants',
method: 'GET',
},
};
}
}
exports.AIMLApi = AIMLApi;
//# sourceMappingURL=AIMLApi.credentials.js.map