Skip to content

Commit 66239b1

Browse files
committed
fix(web-llm): fix infinite loading when local model cache is invalid
1 parent b95e17f commit 66239b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/rpc/background-fns.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ function initWebLLMEngine(model: WebLLMSupportedModel) {
565565
},
566566
})
567567
port.postMessage({ type: 'ready' })
568+
port.disconnect()
568569
})
569570
return { portName }
570571
}

0 commit comments

Comments
 (0)