(store: AIConfigStore)
| 126 | } |
| 127 | |
| 128 | saveStore(store: AIConfigStore): void { |
| 129 | this.storage.writeJson<AIConfigStore>('llm-config', { |
| 130 | ...store, |
| 131 | configs: store.configs.map((config) => ({ |
| 132 | ...config, |
| 133 | apiKey: '', |
| 134 | })), |
| 135 | }) |
| 136 | } |
| 137 | |
| 138 | getAllConfigs(): AIServiceConfig[] { |
| 139 | return this.loadStore().configs |
no test coverage detected