UNPKG

n8n-nodes-pdf-accessibility

Version:

AI-powered PDF accessibility automation for N8N - comprehensive WCAG compliance analysis, intelligent remediation, and professional audit reporting with 5 integrated accessibility tools

52 lines (51 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OpenAIApi = void 0; class OpenAIApi { constructor() { this.name = 'openAIApi'; this.displayName = 'OpenAI API'; this.documentationUrl = 'https://platform.openai.com/api-keys'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Your OpenAI API key', }, { displayName: 'Organization ID', name: 'organizationId', type: 'string', default: '', description: 'Optional: Your OpenAI organization ID', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://api.openai.com/v1', description: 'Base URL for OpenAI API (useful for custom endpoints)', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.baseUrl || "https://api.openai.com/v1"}}', url: '/models', method: 'GET', }, }; } } exports.OpenAIApi = OpenAIApi;