UNPKG

llmforge

Version:

One API, every AI model, instant switching. Change from GPT-4 to Gemini to local models with a single config update. LLMForge is the lightweight, TypeScript-first solution for multi-provider AI applications with zero vendor lock-in.

22 lines 708 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Factory = void 0; const openai_adapter_1 = require("./openai.adapter"); const google_adapter_1 = require("./google.adapter"); class Factory { constructor(config) { this.config = config; } create(llm) { switch (llm) { case 'google': return new google_adapter_1.GeminiClient(this.config); case 'openai': return new openai_adapter_1.OpenAIClient(this.config); default: throw new Error('Currently this LLM is not supported'); } } } exports.Factory = Factory; //# sourceMappingURL=provider.factory.js.map