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

Method exportSettings

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

Source from the content-addressed store, hash-verified

267
268 // Export model settings for backup
269 exportSettings(): string {
270 const models = this.getDownloadedModels();
271 return JSON.stringify({
272 version: '1.0',
273 timestamp: new Date().toISOString(),
274 models: models.map(m => ({
275 id: m.id,
276 name: m.name,
277 size: m.size,
278 downloadDate: m.downloadDate,
279 lastUsed: m.lastUsed,
280 })),
281 }, null, 2);
282 }
283
284 // Import model settings from backup
285 importSettings(settingsJson: string): void {

Callers

nothing calls this directly

Calls 1

getDownloadedModelsMethod · 0.95

Tested by

no test coverage detected