(providerId: string, modelId: string)
| 72 | } |
| 73 | |
| 74 | export 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 | } |
nothing calls this directly
no test coverage detected