Last updated: March 24, 2026
In the unfortunate case that the model is not downloaded yet, developers have the option to monitor the download progress. To do so, every create method accepts a monitor function that can be used to track the download progress.
*.create({
monitor(m) {
m.addEventListener("downloadprogress", (e) => {
console.log("Downloaded " + (e.loaded * 100) + "%");
});
},
}) Click the button below to initiate a request to create a LanguageModel session. The widget uses the monitor callback to observe real-time download progress.