UNPKG

@matthew.ngo/ai-toolkit

Version:

A comprehensive AI toolkit with multi-provider support

2 lines 1.46 kB
import'./chunk-KQCRWDSA.js';export{g as AIConfigSchema,m as AIEngine,a as Analytics,e as CacheConfigSchema,c as CacheManager,h as ConfigManager,i as ErrorHandler,b as PerformanceMonitor,d as RateLimitConfigSchema,j as RateLimiter,f as RetryConfigSchema,k as RetryManager,l as TokenManager}from'./chunk-UJOU2FAP.js';export{b as AnthropicProvider,a as BaseProvider,c as GoogleProvider,d as MockProvider,e as OpenAIProvider}from'./chunk-SDHVI673.js';var u={development:{provider:"mock",cache:{enabled:true,ttl:6e5,maxSize:100,strategy:"lru"},debug:true},production:{provider:"openai",model:"gpt-3.5-turbo",cache:{enabled:true,ttl:36e5,maxSize:500,strategy:"lru"},rateLimit:{requestsPerMinute:60,concurrent:5,strategy:"sliding-window"},retry:{maxAttempts:3,baseDelay:1e3,maxDelay:3e4,backoff:"exponential"}},highPerformance:{provider:"openai",model:"gpt-3.5-turbo",cache:{enabled:true,ttl:72e5,maxSize:1e3,strategy:"lru"},rateLimit:{requestsPerMinute:100,concurrent:10,strategy:"token-bucket"},fallbackProviders:["anthropic","google"]},costOptimized:{provider:"openai",model:"gpt-3.5-turbo",cache:{enabled:true,ttl:864e5,maxSize:200,strategy:"lfu"},rateLimit:{requestsPerMinute:30,concurrent:5,strategy:"fixed-window"}}};async function P(e={}){let{AIEngine:t}=await import('./ai-engine-PKC5S7EB.js');return new t({...u.production,...e})}var A="1.0.0";export{u as AIPresets,A as VERSION,P as createAI};//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map