SumAI-Search / client /modules /webLlmWorker.ts
github-actions[bot]
Sync to HuggingFace Spaces
6b3405c
raw
history blame contribute delete
182 Bytes
import { WebWorkerMLCEngineHandler } from "@mlc-ai/web-llm";
const handler = new WebWorkerMLCEngineHandler();
self.onmessage = (msg: MessageEvent) => {
handler.onmessage(msg);
};