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.
12 lines (11 loc) • 397 B
TypeScript
import { RetryConfig } from '../../types';
export declare class RetryHandler {
private config;
constructor(config?: Partial<RetryConfig>);
executeWithRetry<T>(operation: () => Promise<T>, context?: string): Promise<T>;
private isRetryableError;
private calculateDelay;
private sleep;
updateConfig(newConfig: Partial<RetryConfig>): void;
getConfig(): RetryConfig;
}