(configId: string, modelId: string)
| 366 | |
| 367 | /** 设置默认助手模型(configId + modelId) */ |
| 368 | export function setDefaultAssistantModel(configId: string, modelId: string): { success: boolean; error?: string } { |
| 369 | const store = loadConfigStore() |
| 370 | const config = store.configs.find((c) => c.id === configId) |
| 371 | |
| 372 | if (!config) { |
| 373 | return { success: false, error: t('llm.configNotFound') } |
| 374 | } |
| 375 | |
| 376 | store.defaultAssistant = { configId, modelId } |
| 377 | saveConfigStore(store) |
| 378 | return { success: true } |
| 379 | } |
| 380 | |
| 381 | /** 设置快速模型(configId + modelId),传 null 表示跟随默认助手 */ |
| 382 | export function setFastModel(slot: import('./model-types').ModelSlot | null): { success: boolean; error?: string } { |
nothing calls this directly
no test coverage detected