managarten/packages/local-llm/src/index.ts
Till JS 919cb4bf35 fix(local-llm): wrap @mlc-ai/web-llm in dynamic import for Docker builds
Move hasModelInCache to local-llm package with dynamic import wrapper
so the browser-only dependency doesn't break server-side builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 12:22:20 +02:00

30 lines
540 B
TypeScript

// Engine
export { LocalLLMEngine, localLLM } from './engine';
// Models
export { MODELS, DEFAULT_MODEL } from './models';
export type { ModelKey } from './models';
// Types
export type {
ChatMessage,
GenerateOptions,
GenerateResult,
ModelConfig,
LoadingStatus,
} from './types';
// Cache utilities
export { hasModelInCache } from './cache';
// Svelte 5 reactive helpers
export {
getLocalLlmStatus,
loadLocalLlm,
unloadLocalLlm,
isLocalLlmSupported,
generate,
generateText,
extractJson,
classify,
} from './svelte.svelte';