MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / emitProgress

Method emitProgress

frontend/src/lib/ai/modelManager.ts:187–192  ·  view source on GitHub ↗
(progress: ModelDownloadProgress)

Source from the content-addressed store, hash-verified

185
186 // Emit progress update
187 emitProgress(progress: ModelDownloadProgress): void {
188 const callback = this.downloadCallbacks.get(progress.modelId);
189 if (callback) {
190 callback(progress);
191 }
192 }
193
194 // Start download process (to be called by WebLLM provider)
195 async startDownload(model: LocalModel): Promise<void> {

Callers 4

startDownloadMethod · 0.95
handleDownloadErrorMethod · 0.95
handleDownloadModelFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected