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

Method getDownloadedModels

frontend/src/lib/ai/modelManager.ts:127–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126 // Get all downloaded models
127 getDownloadedModels(): LocalModel[] {
128 try {
129 const stored = localStorage.getItem(this.STORAGE_KEY);
130 if (!stored) return [];
131
132 const models = JSON.parse(stored);
133 return Array.isArray(models) ? models : [];
134 } catch (error) {
135 console.error('Error reading downloaded models:', error);
136 return [];
137 }
138 }
139
140 // Check if a model is downloaded
141 isModelDownloaded(modelId: string): boolean {

Callers 12

getStorageInfoMethod · 0.95
markModelDownloadedMethod · 0.95
markModelUsedMethod · 0.95
removeModelMethod · 0.95
isModelDownloadedMethod · 0.95
getDownloadedModelMethod · 0.95
cleanupOldModelsMethod · 0.95
getRecommendedCleanupMethod · 0.95
exportSettingsMethod · 0.95
importSettingsMethod · 0.95
ModelSelectorFunction · 0.80
loadDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected