diff --git a/utils/rpc/background-fns.ts b/utils/rpc/background-fns.ts index aeaac800..25ebabc4 100644 --- a/utils/rpc/background-fns.ts +++ b/utils/rpc/background-fns.ts @@ -565,6 +565,7 @@ function initWebLLMEngine(model: WebLLMSupportedModel) { }, }) port.postMessage({ type: 'ready' }) + port.disconnect() }) return { portName } }