UNPKG

multi-llm

Version:

A unified TypeScript/JavaScript package to use LLMs across ALL platforms with support for 17 major providers, streaming, MCP tools, and intelligent response parsing

11 lines 545 B
import { ModelInfo, ChatOptions, ChatMessage, ChatResult, StreamCallback } from './types'; import { LLM } from './llm'; export declare abstract class Provider { protected apiKey: string; protected baseUrl?: string; constructor(apiKey: string, baseUrl?: string); abstract getModels(): Promise<ModelInfo[]>; abstract createLLM(modelId: string): LLM; abstract chat(modelId: string, messages: ChatMessage[], options: ChatOptions, streamCallback?: StreamCallback): Promise<ChatResult>; } //# sourceMappingURL=provider.d.ts.map