UNPKG

n8n

Version:

n8n Workflow Automation Tool

122 lines 5.04 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.LlmJudgeProviderRegistry = void 0; const di_1 = require("@n8n/di"); const PROVIDERS = [ { nodeType: '@n8n/n8n-nodes-langchain.lmChatOpenAi', displayName: 'OpenAI Chat Model', credentialTypes: [{ name: 'openAiApi', displayName: 'OpenAI' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatAnthropic', displayName: 'Anthropic Chat Model', credentialTypes: [{ name: 'anthropicApi', displayName: 'Anthropic' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatGoogleGemini', displayName: 'Google Gemini Chat Model', credentialTypes: [{ name: 'googlePalmApi', displayName: 'Google Gemini (PaLM) API' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatGoogleVertex', displayName: 'Google Vertex Chat Model', credentialTypes: [{ name: 'googleApi', displayName: 'Google Service Account' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatAzureOpenAi', displayName: 'Azure OpenAI Chat Model', credentialTypes: [ { name: 'azureOpenAiApi', displayName: 'Azure OpenAI' }, { name: 'azureEntraCognitiveServicesOAuth2Api', displayName: 'Azure Entra (Cognitive Services)', }, ], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatAwsBedrock', displayName: 'AWS Bedrock Chat Model', credentialTypes: [{ name: 'aws', displayName: 'AWS' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatOllama', displayName: 'Ollama Chat Model', credentialTypes: [{ name: 'ollamaApi', displayName: 'Ollama' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatVercelAiGateway', displayName: 'Vercel AI Gateway Chat Model', credentialTypes: [{ name: 'vercelAiGatewayApi', displayName: 'Vercel AI Gateway' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatXAiGrok', displayName: 'xAI Grok Chat Model', credentialTypes: [{ name: 'xAiApi', displayName: 'xAI' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatGroq', displayName: 'Groq Chat Model', credentialTypes: [{ name: 'groqApi', displayName: 'Groq' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatOpenRouter', displayName: 'OpenRouter Chat Model', credentialTypes: [{ name: 'openRouterApi', displayName: 'OpenRouter' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatDeepSeek', displayName: 'DeepSeek Chat Model', credentialTypes: [{ name: 'deepSeekApi', displayName: 'DeepSeek' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatCohere', displayName: 'Cohere Chat Model', credentialTypes: [{ name: 'cohereApi', displayName: 'Cohere' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatMistralCloud', displayName: 'Mistral Cloud Chat Model', credentialTypes: [{ name: 'mistralCloudApi', displayName: 'Mistral Cloud' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatAlibabaCloud', displayName: 'Alibaba Cloud Chat Model', credentialTypes: [{ name: 'alibabaCloudApi', displayName: 'Alibaba Cloud' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatMinimax', displayName: 'MiniMax Chat Model', credentialTypes: [{ name: 'minimaxApi', displayName: 'MiniMax' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatMoonshot', displayName: 'Moonshot Kimi Chat Model', credentialTypes: [{ name: 'moonshotApi', displayName: 'Moonshot' }], }, { nodeType: '@n8n/n8n-nodes-langchain.lmChatLemonade', displayName: 'Lemonade Chat Model', credentialTypes: [{ name: 'lemonadeApi', displayName: 'Lemonade' }], }, ]; const PROVIDERS_BY_NODE_TYPE = new Map(PROVIDERS.map((p) => [p.nodeType, p])); let LlmJudgeProviderRegistry = class LlmJudgeProviderRegistry { listProviders() { return PROVIDERS; } get(nodeType) { return PROVIDERS_BY_NODE_TYPE.get(nodeType); } }; exports.LlmJudgeProviderRegistry = LlmJudgeProviderRegistry; exports.LlmJudgeProviderRegistry = LlmJudgeProviderRegistry = __decorate([ (0, di_1.Service)() ], LlmJudgeProviderRegistry); //# sourceMappingURL=llm-judge-provider-registry.js.map