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

Method markModelUsed

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

Source from the content-addressed store, hash-verified

107
108 // Mark a model as used (update last used timestamp)
109 markModelUsed(modelId: string): void {
110 const models = this.getDownloadedModels();
111 const model = models.find(m => m.id === modelId);
112
113 if (model) {
114 model.lastUsed = new Date().toISOString();
115 this.saveDownloadedModels(models);
116 }
117 }
118
119 // Remove a model from downloaded list
120 removeModel(modelId: string): void {

Callers 2

handleModelSelectFunction · 0.80
handleUseModelFunction · 0.80

Calls 2

getDownloadedModelsMethod · 0.95
saveDownloadedModelsMethod · 0.95

Tested by

no test coverage detected