( aiDataDir: string, configId: string, modelId: string )
| 201 | } |
| 202 | |
| 203 | export function setDefaultAssistantSlot( |
| 204 | aiDataDir: string, |
| 205 | configId: string, |
| 206 | modelId: string |
| 207 | ): { success: boolean; error?: string } { |
| 208 | const storeForSave = loadRawConfigStore(aiDataDir) |
| 209 | const config = storeForSave.configs.find((c) => c.id === configId) |
| 210 | |
| 211 | if (!config) { |
| 212 | return { success: false, error: 'Config not found' } |
| 213 | } |
| 214 | |
| 215 | storeForSave.defaultAssistant = { configId, modelId } |
| 216 | saveLlmConfig(aiDataDir, storeForSave) |
| 217 | return { success: true } |
| 218 | } |
| 219 | |
| 220 | export function setFastModelSlot(aiDataDir: string, slot: ModelSlot | null): { success: boolean; error?: string } { |
| 221 | const storeForSave = loadRawConfigStore(aiDataDir) |
nothing calls this directly
no test coverage detected