UNPKG

@juanpin/aicomponents

Version:

Components for AI, that I constantly use

30 lines (25 loc) 1.05 kB
import { FC } from 'react'; export declare const LocalChat: FC<Props>; declare enum ModelName { ZR1_1_5B = "onnx-community/ZR1-1.5B-ONNX", DEEPSEEK_R1_DISTILL = "onnx-community/DeepSeek-R1-Distill-Qwen-1.5B-ONNX", LLAMA_3_2_1B = "onnx-community/Llama-3.2-1B-Instruct-q4f16", SMOLLM2_1_7B = "HuggingFaceTB/SmolLM2-1.7B-Instruct", SMOLLM2_360M = "HuggingFaceTB/SmolLM2-360M-Instruct", SMOLLM_135M = "HuggingFaceTB/SmolLM-135M-Instruct" } declare type Props = { /** Custom worker fallback path (optional, absolute path) */ workerFallbackPath?: string; /** Header text to display in the chat component */ headerText?: string; /** Array of local file paths to use as LLM context */ contextFiles?: string[]; /** System prompt for the LLM (overrides default if set) */ systemPrompt?: string; /** Model to use for inference */ modelName?: ModelName; /** Custom welcome message content (React element) */ welcomeMessage?: React.ReactNode; }; export { }