/** * Local Model Catalog * * Maps friendly model IDs to HuggingFace model repository IDs. * Used by the local inference engine to resolve model names. * * @module provider/local */ export interface ModelInfo { /** HuggingFace model repository ID */ hfId: string; /** Quantization dtype for ONNX Runtime */ dtype: ModelDType | Record; /** Runtime path required by the model. */ engine?: "text-generation" | "conditional-generation"; /** Transformers.js model class used by conditional-generation models. */ modelClass?: "gemma4" | "qwen3_5"; /** Approximate download size in MB */ sizeMB: number; /** Human-readable description */ description: string; /** Pooling strategy for embedding models (default: "mean") */ pooling?: "mean" | "last_token"; } export type ModelDType = "q4" | "q8" | "q4f16" | "fp16" | "fp32"; /** Default model used when no specific model ID is provided */ export declare const DEFAULT_LOCAL_MODEL = "qwen3.5-0.8b"; /** Default embedding model used when no specific model ID is provided */ export declare const DEFAULT_LOCAL_EMBEDDING_MODEL = "all-MiniLM-L6-v2"; /** * Resolve a friendly embedding model ID to its HuggingFace model info. * Falls back to treating the ID as a raw HuggingFace repository ID. */ export declare function resolveLocalEmbeddingModel(modelId: string): ModelInfo; /** * Resolve a supported local model ID to its HuggingFace model info. */ export declare function resolveLocalModel(modelId: string): ModelInfo; /** * Get all available local model IDs. */ export declare function getLocalModelIds(): string[]; //# sourceMappingURL=model-catalog.d.ts.map