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

Method getDownloadedModel

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

Source from the content-addressed store, hash-verified

145
146 // Get a specific downloaded model
147 getDownloadedModel(modelId: string): LocalModel | undefined {
148 const models = this.getDownloadedModels();
149 return models.find(m => m.id === modelId);
150 }
151
152 // Cleanup old models to free space
153 async cleanupOldModels(targetSpaceMB: number = 2000): Promise<string[]> {

Callers

nothing calls this directly

Calls 1

getDownloadedModelsMethod · 0.95

Tested by

no test coverage detected