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
32 lines (31 loc) • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LLMProviderFactory = void 0;
const anthropic_1 = require("./anthropic");
const openai_1 = require("./openai");
const google_1 = require("./google");
class LLMProviderFactory {
static createProvider(providerType, credentials) {
switch (providerType) {
case 'anthropic':
return new anthropic_1.AnthropicProvider(credentials);
case 'openai':
return new openai_1.OpenAIProvider(credentials);
case 'google':
return new google_1.GoogleProvider(credentials);
case 'custom':
throw new Error('Custom provider not yet implemented');
default:
throw new Error(`Unsupported LLM provider: ${providerType}`);
}
}
static getSupportedProviders() {
return ['anthropic', 'openai', 'google'];
}
static getProviderModels(providerType) {
const tempCredentials = { apiKey: 'temp' };
const provider = this.createProvider(providerType, tempCredentials);
return provider.getModels();
}
}
exports.LLMProviderFactory = LLMProviderFactory;