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.

26 lines (25 loc) 631 B
import { Config, Content } from 'index'; export interface finalResponse { type: 'complete'; content: string; thinking: string; model: string; usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } export interface streamResponse { type: 'token' | 'complete'; content: string; timestamp: Date; } export declare class RunnerClient { private readonly config; private LLMClient; private constructor(); static create(config: Config): Promise<RunnerClient>; private loadLLMClient; run(content: Content[]): Promise<any>; }