UNPKG

n8n-nodes-winston-ai

Version:

AI detector with industry leading accuracy rates in detecting use of AI in text and images. The Winston AI tools also offers a robust plagiarism checker to help maintain integrity.

43 lines 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WinstonAiApi = void 0; class WinstonAiApi { constructor() { this.name = 'WinstonAiApi'; this.displayName = 'Winston AI API'; this.icon = 'file:winstonai.svg'; this.documentationUrl = 'https://docs.gowinston.ai/'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', }, { displayName: 'Domain', name: 'domain', type: 'string', default: 'https://api.gowinston.ai', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.domain}}', url: '/credits', method: 'GET', }, }; } } exports.WinstonAiApi = WinstonAiApi; //# sourceMappingURL=WinstonAiApi.credentials.js.map