MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / deleteCustomModel

Function deleteCustomModel

apps/desktop/main/ai/llm/custom-model-store.ts:74–82  ·  view source on GitHub ↗
(providerId: string, modelId: string)

Source from the content-addressed store, hash-verified

72}
73
74export function deleteCustomModel(providerId: string, modelId: string): { success: boolean; error?: string } {
75 const models = readStore()
76 const index = models.findIndex((m) => m.id === modelId && m.providerId === providerId)
77 if (index === -1) return { success: false, error: 'Custom model not found' }
78
79 models.splice(index, 1)
80 writeStore(models)
81 return { success: true }
82}

Callers

nothing calls this directly

Calls 2

readStoreFunction · 0.70
writeStoreFunction · 0.70

Tested by

no test coverage detected