n8n-nodes-straico-chat
Version:
Adds a Straico Chat Model to use with n8n AI Agents and Chains.
42 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StraicoApi = void 0;
class StraicoApi {
constructor() {
this.name = 'straicoApi';
this.displayName = 'Straico API';
this.documentationUrl = 'https://documenter.getpostman.com/view/5900072/2s9YyzddrR';
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.straico.com/v0',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '={{ "Bearer " + $credentials.apiKey }}',
},
},
};
this.test = {
request: {
baseURL: '={{ $credentials.url }}',
url: '/models',
},
};
}
}
exports.StraicoApi = StraicoApi;
//# sourceMappingURL=StraicoApi.credentials.js.map