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

Method isModelDownloaded

frontend/src/lib/ai/modelManager.ts:141–144  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

139
140 // Check if a model is downloaded
141 isModelDownloaded(modelId: string): boolean {
142 const models = this.getDownloadedModels();
143 return models.some(m => m.id === modelId && m.isDownloaded);
144 }
145
146 // Get a specific downloaded model
147 getDownloadedModel(modelId: string): LocalModel | undefined {

Callers

nothing calls this directly

Calls 1

getDownloadedModelsMethod · 0.95

Tested by

no test coverage detected