Method
delete
(providerId: string, modelId: string)
Source from the content-addressed store, hash-verified
| 115 | } |
| 116 | |
| 117 | delete(providerId: string, modelId: string): { success: boolean; error?: string } { |
| 118 | const models = this.getAll() |
| 119 | const index = models.findIndex((m) => m.id === modelId && m.providerId === providerId) |
| 120 | if (index === -1) return { success: false, error: 'Custom model not found' } |
| 121 | models.splice(index, 1) |
| 122 | this.storage.writeJson('custom-models', models) |
| 123 | return { success: true } |
| 124 | } |
| 125 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected