(id: string)
| 78 | } |
| 79 | |
| 80 | export function deleteLLMConfig(id: string): void { |
| 81 | const { settings } = stores |
| 82 | settings.removeLLMConfig(id) |
| 83 | |
| 84 | // 如果删除的是默认配置,清除默认值 |
| 85 | if (settings.settings.defaultLLMId === id) { |
| 86 | settings.setDefaultLLMId(undefined) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | export function copyLLMConfig(config: LLMConfig): LLMConfig { |
| 91 | return createLLMConfig( |
nothing calls this directly
no test coverage detected