deep-chat
Version:
Customizable chat component for AI APIs
33 lines • 1.3 kB
TypeScript
export type WebModelName = 'Llama-3.2-1B-Instruct-q4f16_1-MLC' | 'Llama-3.2-1B-Instruct-q4f32_1-MLC' | 'Llama-3.2-3B-Instruct-q4f16_1-MLC' | 'Llama-3.1-8B-Instruct-q4f16_1-MLC' | 'Phi-3.5-mini-instruct-q4f16_1-MLC' | 'Phi-3.5-mini-instruct-q4f16_1-MLC-1k' | 'Qwen2.5-0.5B-Instruct-q4f16_1-MLC' | 'Qwen2.5-1.5B-Instruct-q4f16_1-MLC' | 'gemma-2-2b-it-q4f16_1-MLC' | 'Mistral-7B-Instruct-v0.3-q4f16_1-MLC' | 'TinyLlama-1.1B-Chat-v1.0-q4f16_1-MLC' | 'SmolLM2-1.7B-Instruct-q4f16_1-MLC' | (string & {});
export interface WebModelIntro {
displayed?: boolean;
initialHtml?: string;
downloadClass?: string;
uploadClass?: string;
fileInputClass?: string;
afterLoadHtml?: string;
exportFilesClass?: string;
removeAfterLoad?: boolean;
removeAfterMessage?: boolean;
autoScroll?: boolean;
}
export interface WebModelLoad {
onInit?: boolean;
onMessage?: boolean;
clearCache?: boolean;
skipCache?: boolean;
}
export interface WebModelUrls {
model?: string;
wasm?: string;
}
export interface WebModelConfig {
model?: WebModelName;
instruction?: string;
urls?: WebModelUrls;
load?: WebModelLoad;
introMessage?: WebModelIntro;
worker?: Worker;
}
export type WebModel = boolean | WebModelConfig;
//# sourceMappingURL=webModel.d.ts.map